diff options
Diffstat (limited to 'bin/toggle-xmobar-bottom.sh')
-rwxr-xr-x | bin/toggle-xmobar-bottom.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/toggle-xmobar-bottom.sh b/bin/toggle-xmobar-bottom.sh new file mode 100755 index 0000000..e2c839c --- /dev/null +++ b/bin/toggle-xmobar-bottom.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +pidof xmobar-bottom && killall xmobar-bottom + +if pidof spotify>/dev/null; then + xmobar-bottom $* spotify & +else + xmobar-bottom $* mpd & +fi |