diff options
Diffstat (limited to 'bin/cmus_toggle')
| -rwxr-xr-x | bin/cmus_toggle | 8 | 
1 files changed, 8 insertions, 0 deletions
| diff --git a/bin/cmus_toggle b/bin/cmus_toggle new file mode 100755 index 0000000..8568a82 --- /dev/null +++ b/bin/cmus_toggle @@ -0,0 +1,8 @@ +#!/bin/sh + +STATUS=$(cmus-remote -Q | grep status | awk '{print $2}') +if [ "$STATUS" = paused ];then  +  cmus-remote -p +elif [ $STATUS = playing ];then  +  cmus-remote -u +fi | 
