From 6808b57bb50ebd6559e3882a52a24c74d0dbfe76 Mon Sep 17 00:00:00 2001 From: prescientmoon Date: Thu, 29 Feb 2024 13:25:59 +0100 Subject: [PATCH] Disable sticky layer switch I'd sometimes be undecided and tap the layer key more than once, which lead to it cancelling itself, which wasn't really what I was going for --- hosts/nixos/common/optional/services/kanata.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/hosts/nixos/common/optional/services/kanata.nix b/hosts/nixos/common/optional/services/kanata.nix index 88fefdd..65a42ce 100644 --- a/hosts/nixos/common/optional/services/kanata.nix +++ b/hosts/nixos/common/optional/services/kanata.nix @@ -13,8 +13,8 @@ let ;; }}} ;; {{{ Layer & utility aliases (defalias - red (${stickTap "layer-while-held red"}) - blue (${stickTap "layer-while-held blue"}) + red (layer-while-held red) + blue (layer-while-held blue) purple (layer-while-held purple) em (unicode —) @@ -149,7 +149,9 @@ let ;; }}} ;; {{{ Purple (defalias - cps (caps-word 2000) ;; revert after being idle for 2s + ;; Press once to active caps lock for a word (revert after being idle + ;; for 2s), or twice for real caps lock. + cps (tap-dance 200 ((caps-word 2000) caps)) udo (arbitrary-code 131) ;; undo cpy (arbitrary-code 133) ;; copy pst (arbitrary-code 135) ;; paste