aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/sb-mpdup
diff options
context:
space:
mode:
authorawy <awy@awy.one>2025-08-24 14:08:03 +0300
committerawy <awy@awy.one>2025-08-24 14:08:03 +0300
commit474006cd2c173d02e4511045f07c04e159010d4e (patch)
treec6d494b835f0a2914493b1511c3af70b7009cff7 /.local/bin/sb-mpdup
parent632c51ed3ce26090e5ba67b27075bd1ac5848fca (diff)
downloadhyprdots-474006cd2c173d02e4511045f07c04e159010d4e.tar.gz
cleanup
Diffstat (limited to '.local/bin/sb-mpdup')
-rwxr-xr-x.local/bin/sb-mpdup8
1 files changed, 8 insertions, 0 deletions
diff --git a/.local/bin/sb-mpdup b/.local/bin/sb-mpdup
new file mode 100755
index 0000000..42bd737
--- /dev/null
+++ b/.local/bin/sb-mpdup
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+# This loop will update the mpd statusbar module whenever a command changes the
+# music player's status. mpd must be running on X's start for this to work.
+
+while : ; do
+ mpc idle >/dev/null && kill -45 "$(pidof "waybar")" || break
+done