From 7e3e104baccc34b5583f7695f1a4d3768541fc94 Mon Sep 17 00:00:00 2001 From: dx Date: Thu, 9 Jul 2020 22:07:30 +0100 Subject: +script to update dwmbar based on music changes --- Scripts/.local/scripts/status/music_update_bar | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 Scripts/.local/scripts/status/music_update_bar (limited to 'Scripts/.local/scripts/status/music_update_bar') 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 -- cgit v1.2.3-13-gbd6f