From f31a0a48a2408d38faaaae2d0fb91528e3c2c20e Mon Sep 17 00:00:00 2001 From: iamcheeseman Date: Fri, 22 May 2026 12:35:36 -0400 Subject: Update config --- .local/bin/dwmstatus.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to '.local/bin/dwmstatus.sh') 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 -- cgit v1.3-2-g0d8e