From 96ee4991d2748960f975f5bf236f6e2898ce7f4f Mon Sep 17 00:00:00 2001 From: vartiovaara <64323553+vartiovaara@users.noreply.github.com> Date: Wed, 30 Jun 2021 17:23:30 +0300 Subject: [PATCH] Update volume when scrolling on volume icon. --- .local/bin/statusbar/sb-volume | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.local/bin/statusbar/sb-volume b/.local/bin/statusbar/sb-volume index 61588c3f..f627cbfa 100755 --- a/.local/bin/statusbar/sb-volume +++ b/.local/bin/statusbar/sb-volume @@ -4,9 +4,9 @@ case $BLOCK_BUTTON in 1) setsid -f "$TERMINAL" -e pulsemixer ;; - 2) pamixer -t ;; - 4) pamixer --allow-boost -i 1 ;; - 5) pamixer --allow-boost -d 1 ;; + 2) pamixer -t; kill -44 $(pidof dwmblocks) ;; + 4) pamixer --allow-boost -i 1; kill -44 $(pidof dwmblocks) ;; + 5) pamixer --allow-boost -d 1; kill -44 $(pidof dwmblocks) ;; 3) notify-send "📢 Volume module" "\- Shows volume 🔊, 🔇 if muted. - Middle click to mute. - Scroll to change." ;;