summaryrefslogtreecommitdiffhomepage
path: root/bin/toggle-xmobar-bottom.sh
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2018-12-19 01:14:45 +0000
committerjao <jao@gnu.org>2018-12-19 01:14:45 +0000
commit754ed5d7c3061c546b4bdbb685bdd73679e04080 (patch)
tree77a7409374e4c0646d81c85a16da9753472ebabf /bin/toggle-xmobar-bottom.sh
parent48c0e1ebcc0e6a7c9ae302f44c814508bfda7b6a (diff)
downloadxmobar-config-754ed5d7c3061c546b4bdbb685bdd73679e04080.tar.gz
xmobar-config-754ed5d7c3061c546b4bdbb685bdd73679e04080.tar.bz2
Shell scripts
Diffstat (limited to 'bin/toggle-xmobar-bottom.sh')
-rwxr-xr-xbin/toggle-xmobar-bottom.sh9
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