diff options
author | InigoGutierrez <inigogf.95@gmail.com> | 2018-12-01 14:02:03 +0100 |
---|---|---|
committer | InigoGutierrez <inigogf.95@gmail.com> | 2018-12-01 14:02:03 +0100 |
commit | 1ca013066ec75ecdae9118c449a255b92c875df4 (patch) | |
tree | a41237938ec1ba7311ed9cdbd1da9566c2a9f137 | |
parent | 01af910da164d1f00f8d85289af6ba95adfc4a42 (diff) | |
download | scripts-1ca013066ec75ecdae9118c449a255b92c875df4.tar.gz scripts-1ca013066ec75ecdae9118c449a255b92c875df4.zip |
Added cmusPlay.sh for starting and pausing/resuming cmus.
-rwxr-xr-x | cmusPlay.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cmusPlay.sh b/cmusPlay.sh new file mode 100755 index 0000000..270a3f2 --- /dev/null +++ b/cmusPlay.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +if ! pgrep -x cmus ; then + urxvt -title floating -sh 20 -geometry "150x12+5-8" -cd ~/music -e cmus +else + cmus-remote -u +fi |