From 754ed5d7c3061c546b4bdbb685bdd73679e04080 Mon Sep 17 00:00:00 2001 From: jao Date: Wed, 19 Dec 2018 01:14:45 +0000 Subject: Shell scripts --- bin/toggle-xmobar-bottom.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 bin/toggle-xmobar-bottom.sh (limited to 'bin/toggle-xmobar-bottom.sh') 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 -- cgit v1.2.3