aboutsummaryrefslogtreecommitdiff
path: root/cmusPlay.sh
diff options
context:
space:
mode:
Diffstat (limited to 'cmusPlay.sh')
-rwxr-xr-xcmusPlay.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmusPlay.sh b/cmusPlay.sh
index 64f5b2c..5a8f8fa 100755
--- a/cmusPlay.sh
+++ b/cmusPlay.sh
@@ -1,7 +1,8 @@
#!/bin/sh
+[ -f "/usr/bin/tmux" ] && tmux="tmux new-session -s cmus"
if ! pgrep -x cmus ; then
- urxvt -title floating -sh 20 -geometry "185x15+30-28" -cd ~/music -e cmus
+ urxvt -title floating -sh 20 -geometry "185x15+30-28" -cd ~/music -e $tmux cmus
else
cmus-remote -u
fi