sane-input-handler: port pulseaudio -> pipewire native
This commit is contained in:
@@ -88,7 +88,7 @@ in
|
||||
pname = "sane-input-handler";
|
||||
srcRoot = ./.;
|
||||
pkgs = {
|
||||
inherit (pkgs) coreutils killall playerctl procps pulseaudio sane-open-desktop util-linux wvkbd;
|
||||
inherit (pkgs) coreutils killall playerctl procps sane-open-desktop util-linux wireplumber wvkbd;
|
||||
sway = config.sane.programs.sway.package.sway-unwrapped;
|
||||
};
|
||||
};
|
||||
@@ -97,9 +97,9 @@ in
|
||||
"killall"
|
||||
"playerctl"
|
||||
"procps"
|
||||
"pulseaudio" #< TODO: replace with just the pulseaudio util we actually need, for proper sandboxing
|
||||
"sane-open-desktop"
|
||||
"sway"
|
||||
"wireplumber"
|
||||
"wvkbd"
|
||||
];
|
||||
sandbox.method = "bwrap";
|
||||
|
@@ -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*)
|
||||
|
Reference in New Issue
Block a user