Skip to content

Instantly share code, notes, and snippets.

@tridungpham
Last active May 12, 2025 18:05
Show Gist options
  • Save tridungpham/ca8b3d8a5af8484eb2aeb4303f7a2969 to your computer and use it in GitHub Desktop.
Save tridungpham/ca8b3d8a5af8484eb2aeb4303f7a2969 to your computer and use it in GitHub Desktop.
Kanata keymap config for HHKB - hold ctrl as ctrl, tap as esc
(defcfg
process-unmapped-keys yes
concurrent-tap-hold yes
)
(defalias
escctrl (tap-hold-press 200 200 esc lctrl)
a-hold (tap-hold 200 200 a (layer-toggle vim-motion-meta))
)
(defsrc
lctrl
a h j k l
lalt lmeta
)
(deflayer base
@escctrl
@a-hold _ _ _ _
lmeta lalt
)
(deflayer vim-motion-meta
_
_ lft down up right
_ _
)
(defvar
;; Note: consider using different time values for your different fingers.
;; For example, your pinkies might be slower to release keys and index
;; fingers faster.
tap-time 200
hold-time 150
left-hand-keys (
q w e r t
a s d f g
z x c v b
)
right-hand-keys (
y u i o p
h j k l ;
n m , . /
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment