diff options
| author | Robert Günzler <r@gnzler.io> | 2021-08-03 22:12:11 +0200 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2021-08-03 22:12:11 +0200 |
| commit | 06eccec83a88b2af00b354bedc1a44713938a385 (patch) | |
| tree | d7bd6fa7696fbee06befee2c79bf1d495d5b3d00 /.config/waybar/modules/mpris.sh | |
| parent | c0b76fb561331af338ee382ce16492f1ff20cf5e (diff) | |
waybar: update
Diffstat (limited to '.config/waybar/modules/mpris.sh')
| -rwxr-xr-x | .config/waybar/modules/mpris.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/.config/waybar/modules/mpris.sh b/.config/waybar/modules/mpris.sh new file mode 100755 index 0000000..5f33f5e --- /dev/null +++ b/.config/waybar/modules/mpris.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +set -eo pipefail +[ -n "$DEBUG" ] && set -x + +playerctl -sF metadata -f '"{{artist}}","{{album}}","{{title}}","{{duration(position)}}","{{playerName}}","{{lc(status)}}"' | awk -F',' -f "${HOME}/.config/waybar/modules/mpris.awk" |