summaryrefslogtreecommitdiffhomepage
path: root/bin/toggle-xmobar-bottom.sh
blob: 17abb3e6508f7afc87bdb878252e52fa88740156 (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 $* &
fi