commit 1a62d0eb3e5d163cc8171ee34afaa2a5f6b62f1b
parent d8834bd7154c348ea799f81c3f683add16a96ec6
Author: awy <awy@awy.one>
Date: Fri, 21 Mar 2025 14:29:17 +0300
sb-music
Diffstat:
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/.local/bin/statusbar/sb-music b/.local/bin/statusbar/sb-music
@@ -5,15 +5,15 @@ filter() { sed "/^volume:/d;s/\\[paused\\].*/⏸/g;/\\[playing\\].*/d;/^ERROR/Q"
pidof -x sb-mpdup >/dev/null 2>&1 || sb-mpdup >/dev/null 2>&1 &
case $1 in
- 1) mpc status | filter ; setsid -f "$TERMINAL" -e ncmpcpp ;; # right click, pause/unpause
- 2) mpc toggle | filter ;; # right click, pause/unpause
- 3) mpc status | filter ; notify-send "🎵 Music module" "\- Shows mpd song playing.
-- ⏸ 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 ; setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;;
- *) mpc status | filter ;;
+ 1) mpc status | filter ; setsid -f "$TERMINAL" -e ncmpcpp ;; # right click, pause/unpause
+ 2) mpc toggle | filter ;; # right click, pause/unpause
+ 3) mpc status | filter ; notify-send "🎵 Music module" "\- Shows mpd song playing.
+ - ⏸ 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
+ 8) mpc status | filter ; setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;;
+ *) mpc status | filter ;;
esac