~kris/dots

srice

ref: 75870dc6ce1e524c46a85157489f839161c9607c srice/.local/bin/statusbar/sb-mpdup -rwxr-xr-x 265 bytes
75870dc6 — Kris Yotam add cw symlink for wallpapermenu (short name matching its own docs) 3 months ago
                                                                                
1
2
3
4
5
6
7
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 "${STATUSBAR:-dwmblocks}")" || break
done