aboutsummaryrefslogtreecommitdiff
path: root/.local
diff options
context:
space:
mode:
authoriamcheeseman <[email protected]>2026-05-22 12:35:36 -0400
committeriamcheeseman <[email protected]>2026-05-22 12:35:36 -0400
commitf31a0a48a2408d38faaaae2d0fb91528e3c2c20e (patch)
treef4e38fe03f86ff9c50d9778be3fd8302ff06090b /.local
parent32256bdd1abde72427ccd1dac185eee48f803ef1 (diff)
Update config
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/dwmstatus.sh7
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