From de0ef0e373948c2b8efa4e89bfceb84b9c47c2e1 Mon Sep 17 00:00:00 2001 From: kkard2 Date: Mon, 9 Sep 2024 21:12:19 +0200 Subject: amend: actually this doesn't work, which is very sad i will not fix this rn --- kanata/chords.py | 4 ++-- kanata/kanata.kbd | 26 +++++++++++++++++++++----- 2 files changed, 23 insertions(+), 7 deletions(-) diff --git a/kanata/chords.py b/kanata/chords.py index 7b6fbb2..1400ad0 100755 --- a/kanata/chords.py +++ b/kanata/chords.py @@ -22,10 +22,10 @@ for keys, macro in chord_data.items(): macro_formatted += f"(unicode {char}) " macro_formatted = macro_formatted.strip() - release = "all-released" + release = "first-release" chord_line = f" ({keys_formatted}) (macro {first_char_macro} { - macro_formatted}) 75 {release} (arrows)\n" + macro_formatted}) 75 {release} (gaming)\n" output += chord_line output += ")\n" diff --git a/kanata/kanata.kbd b/kanata/kanata.kbd index 6cc3782..3b27728 100644 --- a/kanata/kanata.kbd +++ b/kanata/kanata.kbd @@ -1,7 +1,7 @@ (defcfg process-unmapped-keys yes concurrent-tap-hold yes - chords-v2-min-idle-experimental 200 + chords-v2-min-idle-experimental 5 ) (defsrc @@ -10,6 +10,9 @@ caps a s d f g h j k l ; ' ret lsft z x c v b n m , . / rsft lctl lmet lalt spc ralt rmet rctl + + NumpadDivide + NumpadMultiply ) (deflayer default @@ -18,6 +21,20 @@ @cap _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + + (layer-switch default) + (layer-switch gaming) +) + +(deflayer gaming + _ _ _ _ _ _ _ _ _ _ _ _ _ _ + _ _ _ _ _ _ _ _ _ _ _ _ _ _ + @cap _ _ _ _ _ _ _ _ _ _ _ _ + _ _ _ _ _ _ _ _ _ _ _ _ + _ _ _ _ _ _ _ + + (layer-switch default) + (layer-switch gaming) ) (deflayer arrows @@ -26,6 +43,9 @@ _ _ _ _ _ _ left down up rght _ _ _ _ _ _ _ _ @cle _ _ _ _ _ _ _ _ _ _ _ _ _ + + _ + _ ) (defalias @@ -35,7 +55,3 @@ ) (include chords.kbd) - -;;(defchordsv2-experimental -;; (a s d) (macro h (unshift e) (unshift l) (unshift l) (unshift o)) 75 all-released (arrows) -;;) -- cgit v1.3.1