mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-01-30 09:48:11 +01:00
mpd-module-update with break
This commit is contained in:
parent
c7d5707e1e
commit
dc464e5bbb
7
.local/bin/mpd-module-update
Executable file
7
.local/bin/mpd-module-update
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#!/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 && pkill -RTMIN+11 dwmblocks || break
|
||||||
|
done
|
||||||
@ -15,9 +15,4 @@ dunst & # dunst for notifications
|
|||||||
sxhkd & # Bind keys with sxhkd
|
sxhkd & # Bind keys with sxhkd
|
||||||
xset r rate 300 50 & # Speed xrate up
|
xset r rate 300 50 & # Speed xrate up
|
||||||
unclutter & # Remove mouse when idle
|
unclutter & # Remove mouse when idle
|
||||||
|
mpd-module-update & # Check for when to update the mpd module
|
||||||
# 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 pgrep -x mpd >/dev/null; do
|
|
||||||
mpc idle >/dev/null; pkill -RTMIN+11 dwmblocks
|
|
||||||
done
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user