From 58a9e65b5554b2c9552540dfea96b562375cf321 Mon Sep 17 00:00:00 2001 From: InigoGutierrez Date: Mon, 2 Dec 2019 14:23:33 +0100 Subject: Mon 02 Dec 2019 02:23:33 PM CET --- cmusPlay.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cmusPlay.sh') 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 -- cgit v1.2.1