diff options
Diffstat (limited to '.local/bin/statusbar/sb-microphone')
| -rwxr-xr-x | .local/bin/statusbar/sb-microphone | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/.local/bin/statusbar/sb-microphone b/.local/bin/statusbar/sb-microphone index b894194..74fb18f 100755 --- a/.local/bin/statusbar/sb-microphone +++ b/.local/bin/statusbar/sb-microphone @@ -4,10 +4,10 @@ case $BLOCK_BUTTON in 1) setsid -w -f "$TERMINAL" -e pulsemixer; pkill -RTMIN+23 "${STATUSBAR:-someblocks}" ;; - 2) wpctl set-mute @DEFAULT_SOURCE@ toggle ;; - 4) wpctl set-volume @DEFAULT_SOURCE@ 1%+ ;; - 5) wpctl set-volume @DEFAULT_SOURCE@ 1%- ;; - 3) notify-send "🎤 Microphone volume module" "\- Shows volume 🎙️, if muted. + 2) wpctl set-mute @DEFAULT_SOURCE@ toggle; kill -57 $(pidof someblocks) ;; + 4) wpctl set-volume @DEFAULT_SOURCE@ 1%+; kill -57 $(pidof someblocks) ;; + 5) wpctl set-volume @DEFAULT_SOURCE@ 1%-; kill -57 $(pidof someblocks) ;; + 3) notify-send " Microphone volume module" "\- Shows volume , if muted. - Middle click to mute. - Scroll to change." ;; 8) setsid -f "$TERMINAL" -e "$EDITOR" "$0" >/dev/null 2>&1 ;; @@ -30,9 +30,9 @@ split() { vol="$(printf "%.0f" "$(split "$vol" ".")")" case 1 in - $((vol >= 70)) ) icon="🎙️" ;; - $((vol >= 30)) ) icon="🎙️" ;; - $((vol >= 1)) ) icon="🎙️" ;; + $((vol >= 70)) ) icon=" " ;; + $((vol >= 30)) ) icon=" " ;; + $((vol >= 1)) ) icon=" " ;; * ) echo && exit ;; esac |