Skip to content

Commit

Permalink
Fix unstable a and c keys behavior with adding a special layer
Browse files Browse the repository at this point in the history
Update GH-1042 and GH-963
  • Loading branch information
kachick committed Jan 15, 2025
1 parent 1dcdc54 commit 352bf4f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 2 additions & 0 deletions config/keyboards/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Force exiting if I have faced to similar problems like GH-963

`Left Control` + `Space` + `Esc`

And I'm added an escape hatch for caps lock. Which is only useable when keeping `F6` and `c + a + p`.

Then the process will die. You can restart it with `systemctl start kanata-all`.
Not just the `kanata`. You can check it with `systemctl list-unit-files "kanata*`.

Expand Down
11 changes: 8 additions & 3 deletions config/keyboards/kanata.kbd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

;; Required to specify keys which should be considered in tap-hold-press (=spc, tab for alt-spc, alt-tab)
;; See https://github.com/jtroo/kanata/blob/fc850fab9da7d0bf377e215f0b923062e037ff64/docs/config.adoc?plain=1#L142-L143
(defsrc caps lalt ralt spc tab f1 a c)
(defsrc caps lalt ralt spc tab f6 a c p)

(defvar
tap-timeout 200
Expand All @@ -16,10 +16,15 @@
caps lctl
lalt (tap-hold-press $tt $ht muhenkan lalt)
ralt (tap-hold-press $tt $ht henkan ralt)
f6 (layer-while-held help)
)

;; Escape hatch for use of caps. See GH-963
(deflayermap (help)
)

;; Escape hatch for use of caps. See GH-963.
;; Should be disabled on default layer with the last argument. For example, if using "a" in the combination, "main" will be "mian"
(defchordsv2-experimental
;; Don't use caps for inputs combination
(f1 c a) caps 500 all-released ()
(c a p) caps 500 all-released (base)
)

0 comments on commit 352bf4f

Please sign in to comment.