From d36e7cd095371deb8b70115fc7817d351bcfa645 Mon Sep 17 00:00:00 2001 From: zachir Date: Sun, 9 Oct 2022 00:42:48 -0500 Subject: remove dwmblocks (those will be in their own repo --- music | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100755 music (limited to 'music') diff --git a/music b/music deleted file mode 100755 index 2ec8aec..0000000 --- a/music +++ /dev/null @@ -1,24 +0,0 @@ -#!/sbin/sh - -filter() { - if [ `pgrep -x mpd` ]; then - MPCSTAT="$(mpc status)" ; - printf "%s%s%s" "$(echo $MPCSTAT | head -1 | grep -v '^volume' | cut -d'-' -f1 | sed 's/ $//' | cut -c-10)" "$(echo $MPCSTAT | grep -vq '^volume' && echo ' - ')" "$(echo $MPCSTAT | head -1 | grep -v '^volume' | cut -d'-' -f2 | sed 's/^ //' | cut -c-10)" - fi -} - -pidof -x mpdup >/dev/null 2>&1 || mpdup >/dev/null 2>&1 & - -case $BLOCK_BUTTON in - 1) mpc status | filter ; setsid -f "$TERMINAL" -e ncmpcpp ;; # left click, open music player - 3) mpc toggle | filter ;; # right click, pause/unpause - 2) mpc status | filter ; notify-send "🎵 Music module" "\- Shows mpd song playing. -- Italic when paused. -- Left click opens ncmpcpp. -- Middle click pauses. -- Scroll changes track.";; # right click, pause/unpause - 4) mpc prev | filter ;; # scroll up, previous - 5) mpc next | filter ;; # scroll down, next - 6) mpc status | filter ; "$TERMINAL" -e "$EDITOR" "$0" ;; - *) filter ;; -esac -- cgit v1.2.3