diff options
Diffstat (limited to '.local/bin')
| -rwxr-xr-x | .local/bin/dwmstatus.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/.local/bin/dwmstatus.sh b/.local/bin/dwmstatus.sh index 89018bb..e8bc702 100755 --- a/.local/bin/dwmstatus.sh +++ b/.local/bin/dwmstatus.sh @@ -5,7 +5,12 @@ while true; do cpu="load $(uptime -r | cut -d ' ' -f 4)" clock="$(date +'%a %b %d, %r')" volume="vol $(pactl get-sink-volume @DEFAULT_SINK@ | cut -d ' ' -f 6)" - xsetroot -name " $ram ~ $cpu ~ $volume ~ $clock " + media="$(playerctl metadata title) - $(playerctl metadata artist)" + if [ "$(playerctl status)" == "Paused" ]; then + media="no media" + fi + + xsetroot -name " $media ~ $ram ~ $cpu ~ $volume ~ $clock " sleep 1 done |
