aboutsummaryrefslogtreecommitdiff
path: root/Scripts/.local/scripts/status
diff options
context:
space:
mode:
Diffstat (limited to 'Scripts/.local/scripts/status')
-rwxr-xr-xScripts/.local/scripts/status/music_update_bar3
1 files changed, 2 insertions, 1 deletions
diff --git a/Scripts/.local/scripts/status/music_update_bar b/Scripts/.local/scripts/status/music_update_bar
index 2bf6c54..47e3c5f 100755
--- a/Scripts/.local/scripts/status/music_update_bar
+++ b/Scripts/.local/scripts/status/music_update_bar
@@ -3,10 +3,11 @@
while :
do
prev="$(playerctl --player=spotify metadata title)"
+ item=$prev
while [[ $item == $prev ]]
do
- sleep 1;
item="$(playerctl --player=spotify metadata title)";
+ sleep 0.5;
done
kill -48 $(pidof dwmblocks);
item="";