diff options
| -rw-r--r-- | .config/mango/config.conf | 1 | ||||
| -rwxr-xr-x | .local/bin/statusbar/sb-microphone | 14 |
2 files changed, 8 insertions, 7 deletions
diff --git a/.config/mango/config.conf b/.config/mango/config.conf index c391cbf..fca3af5 100644 --- a/.config/mango/config.conf +++ b/.config/mango/config.conf @@ -163,6 +163,7 @@ tagrule=id:9,layout_name:tile # Key Bindings # key name refer to `xev` or `wev` command output, # mod keys name: super,ctrl,alt,shift,none +bind=NONE,code:276,spawn_shell,wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle; pkill -RTMIN+23 someblocks bind=SUPER,grave,spawn,bookmarks bind=SUPER,minus,spawn_shell,wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-; pkill -RTMIN+10 someblocks 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 |