aboutsummaryrefslogtreecommitdiff
path: root/config/i3blocks/scripts/mpd
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2024-04-15 23:34:35 +0200
committerKarel Kočí <cynerd@email.cz>2024-04-15 23:35:42 +0200
commit4a25d79feef0dd6e462abfb48173da7e470127a5 (patch)
treef669e473abd24a84b2d9e167ec3f61463fb2b3a7 /config/i3blocks/scripts/mpd
parentdef6ee65cecb646c4cf0e02e9cfd17dd21611f9c (diff)
downloadmyconfigs-4a25d79feef0dd6e462abfb48173da7e470127a5.tar.gz
myconfigs-4a25d79feef0dd6e462abfb48173da7e470127a5.tar.bz2
myconfigs-4a25d79feef0dd6e462abfb48173da7e470127a5.zip
Replace i3blocks with swaybar
Diffstat (limited to 'config/i3blocks/scripts/mpd')
-rwxr-xr-xconfig/i3blocks/scripts/mpd37
1 files changed, 0 insertions, 37 deletions
diff --git a/config/i3blocks/scripts/mpd b/config/i3blocks/scripts/mpd
deleted file mode 100755
index d179511..0000000
--- a/config/i3blocks/scripts/mpd
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/usr/bin/env bash
-
-status="$(mpc -f "♫ %artist%, %album%, %title%" status)"
-
-case "$BLOCK_BUTTON" in
- 1)
- mpc toggle >/dev/null
- ;;
- 2)
- mpc stop >/dev/null
- ;;
- 3)
- nohup urxvt -title "Music player daemon client" -e ncmpcpp 2>&1 >/dev/null &
- ;;
- 4)
- mpc prev >/dev/null
- ;;
- 5)
- mpc next >/dev/null
- ;;
-esac
-
-if [ "$(echo "$status" | wc -l)" -gt 1 ] && \
- [[ "$status" == **(playing|paused)* ]]; then
- echo "$status" | head -1
- echo
- case "$status" in
- *playing*)
- echo "#00ff00"
- ;;
- *paused*)
- echo "#ffff00"
- ;;
- esac
-else
- echo "♫"
-fi