diff options
-rwxr-xr-x | bin/toggle-xmobar-bottom.sh | 2 | ||||
-rwxr-xr-x | bin/xmobars.sh | 8 |
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 + |