diff options
Diffstat (limited to 'scripts/scripts/playpause.sh')
-rwxr-xr-x | scripts/scripts/playpause.sh | 17 |
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 | |||
5 | if pgrep -x "cmus" > /dev/null | ||
6 | then | ||
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 | ||
15 | else | ||
16 | echo -ne " " | ||
17 | fi | ||