summaryrefslogtreecommitdiffhomepage
path: root/bin/toggle-xmobar-bottom.sh
blob: b089adfbc42365d4bdd4130890533815be738530 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

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