pipewire-controller: hyprland support

This commit is contained in:
Zynh Ludwig 2025-03-22 02:04:43 -07:00
parent 72b5ec72f2
commit dd4dc5eadf

View file

@ -9,10 +9,14 @@ in
}; };
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
snowhawk.sxhkd.enable = true; snowhawk.sxhkd.enable = lib.mkDefault true;
services.sxhkd.keybindings = { services.sxhkd.keybindings = lib.mkIf config.snowhawk.sxhkd.enable {
"XF86TouchpadOn" = "${lib.getExe pkgs.pipewire-controller}"; "XF86TouchpadOn" = "${lib.getExe pkgs.pipewire-controller}";
}; };
wayland.windowManager.hyprland.settings.bind = lib.mkIf config.wayland.windowManager.hyprland.enable [
", XF86TouchpadOn, exec, ${lib.getExe pkgs.pipewire-controller}"
];
}; };
} }