summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2019-01-05 23:10:18 +0000
committerjao <jao@gnu.org>2019-01-05 23:10:18 +0000
commit52611915c9bbf2fcb57e36195797fad223fc6350 (patch)
tree8c1b38359689823b4b823759a0fdedf0ce06d97e
parentf754c1976c5953fe8026fd45d68bcfe2294cbf3f (diff)
downloadxmobar-config-52611915c9bbf2fcb57e36195797fad223fc6350.tar.gz
xmobar-config-52611915c9bbf2fcb57e36195797fad223fc6350.tar.bz2
Shell script launchers and GPMDP
-rwxr-xr-xbin/toggle-xmobar-bottom.sh2
-rwxr-xr-xbin/xmobars.sh8
2 files changed, 4 insertions, 6 deletions
diff --git a/bin/toggle-xmobar-bottom.sh b/bin/toggle-xmobar-bottom.sh
index e2c839c..b089adf 100755
--- a/bin/toggle-xmobar-bottom.sh
+++ b/bin/toggle-xmobar-bottom.sh
@@ -4,6 +4,8 @@ pidof xmobar-bottom && killall xmobar-bottom
if pidof spotify>/dev/null; then
xmobar-bottom $* spotify &
+elif pidof 'Google Play Music Desktop Player'>/dev/null; then
+ xmobar-bottom $* google-play-music-desktop-player &
else
xmobar-bottom $* mpd &
fi
diff --git a/bin/xmobars.sh b/bin/xmobars.sh
index ce94488..ff9ce87 100755
--- a/bin/xmobars.sh
+++ b/bin/xmobars.sh
@@ -5,9 +5,5 @@ run-trayer.sh &
killall xmobar-top
xmobar-top $* &
-killall xmobar-bottom
-if pidof spotify>/dev/null; then
- xmobar-bottom $* spotify &
-else
- xmobar-bottom $* mpd &
-fi
+toggle-xmobar-bottom.sh
+