aboutsummaryrefslogtreecommitdiff
path: root/scripts/scripts/playpause.sh
diff options
context:
space:
mode:
authorAkshay <[email protected]>2020-10-04 10:11:25 +0100
committerAkshay <[email protected]>2020-10-04 10:11:25 +0100
commita74492efd1213ae36aef997c743501c40f261909 (patch)
treeef29f305c92a429829bb8919c8c96d72c971843a /scripts/scripts/playpause.sh
parent93b9d17c6b2c8f63b1d05205c6ec696d998f904c (diff)
add git aliases
Diffstat (limited to 'scripts/scripts/playpause.sh')
-rwxr-xr-xscripts/scripts/playpause.sh17
1 files changed, 0 insertions, 17 deletions
diff --git a/scripts/scripts/playpause.sh b/scripts/scripts/playpause.sh
deleted file mode 100755
index 72ba0fb..0000000
--- a/scripts/scripts/playpause.sh
+++ /dev/null
@@ -1,17 +0,0 @@
1#!/usr/bin/env bash
2# Interactive polybar icon for music controls
3# Requires cmus
4
5if pgrep -x "cmus" > /dev/null
6then
7 status=$( cmus-remote -Q | grep status\ | sed 's/status //' )
8 if [[ "$status" == *playing* ]]; then
9 echo -ne " %{F$(get_xres color2)} "
10 elif [[ "$status" == *paused* ]]; then
11 echo -ne " %{F$(get_xres color2)} "
12 elif [[ "$status" == *stopped* ]]; then
13 echo -ne " %{F$(get_xres color2)} "
14 fi
15else
16 echo -ne "  "
17fi