sane-input-handler: port pulseaudio -> pipewire native

This commit is contained in:
2024-03-03 07:13:23 +00:00
parent ed87792f9b
commit fd072883dc
2 changed files with 6 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p coreutils -p killall -p playerctl -p procps -p pulseaudio -p sane-open-desktop -p sway -p util-linux -p wvkbd
#!nix-shell -i bash -p coreutils -p killall -p playerctl -p procps -p sane-open-desktop -p sway -p util-linux -p wireplumber -p wvkbd
# input map considerations
# - using compound actions causes delays.
@@ -35,7 +35,7 @@
# - seeking backward isn't possible except by first tapping volup.
# increments to use for volume adjustment
# increments to use for volume adjustment (in %)
VOL_INCR=5
KEYBOARD="${KEYBOARD:-wvkbd-mobintl}"
@@ -119,10 +119,10 @@ dispatchDefault() {
# powerbutton_three: intentional no-op because overloading the kill-window handler is risky
volup_tap*|modal_volup_tap*)
handleWith pactl set-sink-volume @DEFAULT_SINK@ +"$VOL_INCR%"
handleWith wpctl set-volume @DEFAULT_AUDIO_SINK@ "$VOL_INCR"%+
;;
voldown_tap*|modal_voldown_tap*)
handleWith pactl set-sink-volume @DEFAULT_SINK@ -"$VOL_INCR%"
handleWith wpctl set-volume @DEFAULT_AUDIO_SINK@ "$VOL_INCR"%-
;;
volup_hold*|modal_volup_hold*)