From d260f9a98cf91e7b72a9aee4e05bec782dae624b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20B=C3=B6hme?= Date: Thu, 29 May 2025 09:52:45 +0200 Subject: [PATCH] feat: make keyboard layout better for helix --- machines/moritz-laptop/configuration.nix | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/machines/moritz-laptop/configuration.nix b/machines/moritz-laptop/configuration.nix index 89903b2..0107bda 100644 --- a/machines/moritz-laptop/configuration.nix +++ b/machines/moritz-laptop/configuration.nix @@ -126,22 +126,21 @@ ;; caps-word tap-dance lsft (tap-dance 200 (_ (caps-word 2000) _ _)) + ;; switch to normal keyboard layout + lctl (layer-switch normal) + ;; change ctrl alt and meta - lctl lalt lmet lctl lalt (tap-dance 200 (lmet (multi lmet alt) lmet lmet)) + ralt lalt - ;; hjkl layer - ralt (tap-hold 200 200 (layer-switch hjkl) (layer-while-held hjkl)) ;; tap: switch hold: switch while held - - ;; switch to normal keyboard layout - rctl (layer-switch normal) + rctl (tap-hold 200 200 (layer-switch layer1) (layer-while-held layer1)) ) (deflayermap (normal) rctl (layer-switch default)) - (deflayermap (hjkl) + (deflayermap (layer1) h left j down k up