diff --git a/home/modules/pipewire-controller.nix b/home/modules/pipewire-controller.nix index 66c6280..e27ab51 100644 --- a/home/modules/pipewire-controller.nix +++ b/home/modules/pipewire-controller.nix @@ -9,10 +9,14 @@ in }; 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}"; }; + + wayland.windowManager.hyprland.settings.bind = lib.mkIf config.wayland.windowManager.hyprland.enable [ + ", XF86TouchpadOn, exec, ${lib.getExe pkgs.pipewire-controller}" + ]; }; }