From c35b9ea674ba36d6b9eac2b66ebfe49533122931 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Mon, 22 Mar 2021 06:26:01 +0000 Subject: (Scripts)~make music_update_bar sleep 1 -> 0.5s --- Scripts/.local/scripts/status/music_update_bar | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Scripts/.local/scripts') 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=""; -- cgit v1.2.3-13-gbd6f