aboutsummaryrefslogtreecommitdiff
path: root/Scripts
diff options
context:
space:
mode:
Diffstat (limited to 'Scripts')
-rwxr-xr-xScripts/.local/scripts/status/music_update_bar12
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