diff options
Diffstat (limited to 'Scripts/.local/scripts/status/music_update_bar')
-rwxr-xr-x | Scripts/.local/scripts/status/music_update_bar | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Scripts/.local/scripts/status/music_update_bar b/Scripts/.local/scripts/status/music_update_bar new file mode 100755 index 0000000..7691f36 --- /dev/null +++ b/Scripts/.local/scripts/status/music_update_bar @@ -0,0 +1,12 @@ +#!/bin/bash + +while : +do + while [[ $item != "player" && $item != "playlist" ]] + do + sleep 0.01; + item=$(mpc idle | head -1); + done + kill -45 $(pidof dwmblocks); + item=""; +done |