diff options
author | Akshay <[email protected]> | 2020-10-04 10:11:25 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2020-10-04 10:11:25 +0100 |
commit | a74492efd1213ae36aef997c743501c40f261909 (patch) | |
tree | ef29f305c92a429829bb8919c8c96d72c971843a /scripts/scripts/playpause.sh | |
parent | 93b9d17c6b2c8f63b1d05205c6ec696d998f904c (diff) |
add git aliases
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 | ||