aboutsummaryrefslogtreecommitdiff
path: root/cmusPlay.sh
blob: a13206255babb5fc09a39603a3c7a6bf6241ca4e (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

tmux=""
[ -f "/usr/bin/tmux" ] && tmux="tmux new-session -s cmus"
if ! pgrep -x cmus ; then
	urxvt -title floating -geometry "159x15+44+450" -cd ~/music -e $tmux cmus
else
	cmus-remote -u
fi

[ -n "$STATUS_BAR" ] && pkill -SIGRTMIN+12 "$STATUS_BAR"