From f72096b717422d635c76d13419da32077cef9fd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20B=C3=B6hme?= Date: Fri, 30 Aug 2024 10:28:22 +0200 Subject: [PATCH] feat: activate hjkl on tap and hold --- hosts/nixos-laptop/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/hosts/nixos-laptop/default.nix b/hosts/nixos-laptop/default.nix index b7f387b..920575b 100644 --- a/hosts/nixos-laptop/default.nix +++ b/hosts/nixos-laptop/default.nix @@ -112,9 +112,9 @@ lalt (tap-dance 200 (lmet (multi lmet alt) lmet lmet)) ;; hjkl layer - ralt (layer-while-held hjkl) + ralt (tap-hold 200 200 (layer-switch hjkl) (layer-while-held hjkl)) ;; tap: switch hold: switch while held - ;; do not do fancy stuff + ;; switch to normal keyboard layout rctl (layer-switch normal) ) @@ -125,7 +125,9 @@ h left j down k up - l right) + l right + + ralt (layer-switch default)) "; }; };