From 034c00886af9ded731c2689f0bcc42f1381127c9 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Sat, 19 Mar 2022 10:38:45 +0330 Subject: mostly pretty git logs --- bin/cmus_toggle | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 bin/cmus_toggle (limited to 'bin/cmus_toggle') 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 -- cgit v1.2.3