diff --git a/home/modules/wm/hyprland/cnst/inputs.nix b/home/modules/wm/hyprland/cnst/inputs.nix index 519c166f..f8c23f13 100644 --- a/home/modules/wm/hyprland/cnst/inputs.nix +++ b/home/modules/wm/hyprland/cnst/inputs.nix @@ -1,9 +1,14 @@ { lib, config, + osConfig, ... }: let inherit (lib) mkIf mkEnableOption; + kbOption = + if osConfig.networking.hostName == "cnixpad" + then "ctrl:swapcaps" + else ""; cfg = config.userModules.wm.hyprland.cnst.inputs; in { options = { @@ -22,6 +27,7 @@ in { input = { kb_layout = "se"; kb_variant = "nodeadkeys"; + kb_options = kbOption; follow_mouse = 1; accel_profile = "flat"; sensitivity = 0; # -1.0 - 1.0, 0 means no modification.