From b8f0bf29aba33d3285c270eb155ca405ec3a9a99 Mon Sep 17 00:00:00 2001 From: "Gustavo \"Guz\" L de Mello" Date: Mon, 7 Jul 2025 12:17:44 -0300 Subject: [PATCH] refactor: add capslock remap to fighter config --- home/guz-lite/keymaps.nix | 17 --------------- hosts/fighter/home.nix | 44 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 17 deletions(-) diff --git a/home/guz-lite/keymaps.nix b/home/guz-lite/keymaps.nix index 4542f1c..c1e0cf5 100644 --- a/home/guz-lite/keymaps.nix +++ b/home/guz-lite/keymaps.nix @@ -11,23 +11,6 @@ services.xremap.enable = true; services.xremap.withHypr = true; - services.xremap.config.modmap = [ - # { - # name = "main remaps"; - # remap = { - # # Capslock as esc and ctrl on hold - # "CapsLock" = { - # held = "leftctrl"; - # alone = "esc"; - # alone_timeout_millis = 150; - # }; - # # Esc to single- and double-quote - # "Esc" = "grave"; - # # single-quotes as Capslock - # "Grave" = "CapsLock"; - # }; - # } - ]; services.xremap.config.keymap = let TERMINAL = config.home.sessionVariables.TERMINAL; EXPLORER = config.home.sessionVariables.EXPLORER; diff --git a/hosts/fighter/home.nix b/hosts/fighter/home.nix index 8e1e3e2..6e80f8e 100644 --- a/hosts/fighter/home.nix +++ b/hosts/fighter/home.nix @@ -4,5 +4,49 @@ wayland.windowManager.hyprland.settings = { "$MONITOR-1" = lib.mkForce "eDP-1"; }; + + services.xremap.config.modmap = [ + { + name = "laptop remaps"; + remap = { + # Capslock as esc and ctrl on hold + "CapsLock" = { + held = "leftctrl"; + alone = "esc"; + alone_timeout_millis = 150; + }; + # "S" = { + # held = "leftalt"; + # alone = "s"; + # alone_timeout_millis = 150; + # }; + # "D" = { + # held = "leftctrl"; + # alone = "d"; + # alone_timeout_millis = 150; + # }; + # "F" = { + # held = "leftshift"; + # alone = "f"; + # alone_timeout_millis = 150; + # }; + # "J" = { + # held = "rightshift"; + # alone = "j"; + # alone_timeout_millis = 150; + # }; + # "K" = { + # held = "rightctrl"; + # alone = "k"; + # alone_timeout_millis = 150; + # }; + # "L" = { + # held = "rightalt"; + # alone = "l"; + # alone_timeout_millis = 150; + # }; + }; + } + ]; }; }