diff --git a/modules/xconfig.nix b/modules/xconfig.nix index c802335..eeafdcd 100644 --- a/modules/xconfig.nix +++ b/modules/xconfig.nix @@ -6,6 +6,8 @@ in { enable = mkEnableOption "Enables opinionated xorg config"; + enableKeyRepeatSettings = mkEnableOption "Enables insanely fast keyrepeat"; + bqn.enable = mkEnableOption "Enables bqn layout"; touchpad = { @@ -17,7 +19,7 @@ in { example = "flat"; description = '' Usually want this on adaptive. - ''; + ''; }; }; @@ -55,8 +57,8 @@ in { xkbOptions = mkIf cfg.bqn.enable "grp:switch"; enable = true; - autoRepeatDelay = 200; - autoRepeatInterval = 60; + autoRepeatDelay = mkIf cfg.enableKeyRepeatSettings 200; + autoRepeatInterval = mkIf cfg.enableKeyRepeatSettings 60; windowManager = { windowmaker.enable = true; xmonad.enable = true;