summaryrefslogtreecommitdiff
path: root/ar/.local/bin/statusbar/sb-mpdup
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-02-17 22:19:16 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-02-17 22:19:16 +0900
commitba6a11651f6ab23e62ceab18e3fd383318fe02d2 (patch)
treed492a99af564d5990be4f01976571b1405033f70 /ar/.local/bin/statusbar/sb-mpdup
parenteec577616f0f23949030c36e2a5061974c9bfe45 (diff)
updates
Diffstat (limited to 'ar/.local/bin/statusbar/sb-mpdup')
-rwxr-xr-xar/.local/bin/statusbar/sb-mpdup3
1 files changed, 3 insertions, 0 deletions
diff --git a/ar/.local/bin/statusbar/sb-mpdup b/ar/.local/bin/statusbar/sb-mpdup
index 0732c88..dd49322 100755
--- a/ar/.local/bin/statusbar/sb-mpdup
+++ b/ar/.local/bin/statusbar/sb-mpdup
@@ -3,6 +3,9 @@
# 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.
+MPD_HOST="${MPD_HOST:-/tmp/mpd_socket}"
+export MPD_HOST
+
while :; do
mpc idle >/dev/null || continue
kill -55 "$(pidof "${STATUSBAR:-dwmblocks}")" 2>/dev/null