diff options
| author | krolyxon <krolyxon@tutanota.com> | 2023-03-21 21:47:27 +0530 |
|---|---|---|
| committer | krolyxon <krolyxon@tutanota.com> | 2023-03-21 21:47:27 +0530 |
| commit | c866ba828c2b65feec1a05863682dd78bf5d5af7 (patch) | |
| tree | 187b8dafd6312959e5f2fece7b03c8a5086eef9b /.local/bin/statusbar/sb-mpdup | |
| parent | 88bcaeb8b87ec78953c0633a5519dfd2e50af8aa (diff) | |
switch to dwmblocks
Diffstat (limited to '.local/bin/statusbar/sb-mpdup')
| -rwxr-xr-x | .local/bin/statusbar/sb-mpdup | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.local/bin/statusbar/sb-mpdup b/.local/bin/statusbar/sb-mpdup new file mode 100755 index 0000000..770d44d --- /dev/null +++ b/.local/bin/statusbar/sb-mpdup @@ -0,0 +1,8 @@ +#!/bin/sh + +# This loop will update the mpd statusbar module whenever a command changes the +# music player's status. mpd must be running on X's start for this to work. + +while : ; do + mpc idle >/dev/null && kill -45 $(pidof dwmblocks) || break +done |
