From 9b1fb64eb9267f0721e45f907ee31bf0c0514c1f Mon Sep 17 00:00:00 2001 From: Marty Sluijtman Date: Mon, 20 May 2024 11:13:43 +0200 Subject: [PATCH] Will finally work? --- modules/xconfig.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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;