diff options
author | dx <aryadevchavali1@gmail.com> | 2020-07-09 22:07:30 +0100 |
---|---|---|
committer | dx <aryadevchavali1@gmail.com> | 2020-07-09 22:10:05 +0100 |
commit | 7e3e104baccc34b5583f7695f1a4d3768541fc94 (patch) | |
tree | ea9a708ac3379a1e7404dfa48d61d5e880624ac9 /Scripts/.local | |
parent | 31516c31c18bbcd37699e47bee1ddb499bfb2943 (diff) | |
download | dotfiles-7e3e104baccc34b5583f7695f1a4d3768541fc94.tar.gz dotfiles-7e3e104baccc34b5583f7695f1a4d3768541fc94.tar.bz2 dotfiles-7e3e104baccc34b5583f7695f1a4d3768541fc94.zip |
+script to update dwmbar based on music changes
Diffstat (limited to 'Scripts/.local')
-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 |