summaryrefslogtreecommitdiff
path: root/music
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2022-10-09 00:42:48 -0500
committerzachir <zachir@librem.one>2022-10-09 00:42:48 -0500
commitd36e7cd095371deb8b70115fc7817d351bcfa645 (patch)
treee21aaae32fcd6debd1ff82e0bbb2e69f0208c4d2 /music
parent0217995cda2e5b3700b911b5561e99c659fba92b (diff)
remove dwmblocks (those will be in their own repo
Diffstat (limited to 'music')
-rwxr-xr-xmusic24
1 files changed, 0 insertions, 24 deletions
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