Modified Kanata config

This commit is contained in:
lulusilly 2026-04-04 19:21:49 -04:00
parent c2e0876491
commit 22e14a22d8
3 changed files with 28 additions and 10 deletions

View file

@ -20,12 +20,12 @@ keybind = cmd+f=toggle_split_zoom
keybind = cmd+a>l=next_tab keybind = cmd+a>l=next_tab
keybind = cmd+a>h=previous_tab keybind = cmd+a>h=previous_tab
keybind = super+r=reload_config keybind = cmd+r=reload_config
quick-terminal-position = center quick-terminal-position = center
quick-terminal-screen = main quick-terminal-screen = main
quick-terminal-animation-duration = 0.2 quick-terminal-animation-duration = 0.2
quick-terminal-autohide = true quick-terminal-autohide = true
keybind = super+shift+q=toggle_quick_terminal keybind = cmd+shift+q=toggle_quick_terminal
window-save-state = always window-save-state = always

View file

@ -11,6 +11,13 @@
(defcfg (defcfg
concurrent-tap-hold yes concurrent-tap-hold yes
movemouse-smooth-diagonals yes movemouse-smooth-diagonals yes
macos-dev-names-include (
"0xD4359520DA829EC8" ;; Macbook
"0x2E7E3EBD4C615B55" ;; Macbook
"0x4C044B7D74E4DBB4" ;; Gamestop keeb
"0xC7C83E024FB08653" ;; Razer Hunstman V2 TKL
)
) )
#| #|
Trying to be minimal in order to reduce constant editing Trying to be minimal in order to reduce constant editing
@ -41,6 +48,8 @@
cho (chord ch o) cho (chord ch o)
chs (chord ch s) chs (chord ch s)
chd (chord ch d) chd (chord ch d)
chf (chord ch f)
chj (chord ch j)
chk (chord ch k) chk (chord ch k)
chl (chord ch l) chl (chord ch l)
ch_lmet (chord ch lmet) ch_lmet (chord ch lmet)
@ -57,6 +66,9 @@
k (tap-hold $tap-time $hold-time k lmet) k (tap-hold $tap-time $hold-time k lmet)
l (tap-hold $tap-time $hold-time l lalt) l (tap-hold $tap-time $hold-time l lalt)
scln (tap-hold $tap-time $hold-time scln rctl) scln (tap-hold $tap-time $hold-time scln rctl)
;; Meh and Hyper key definitions
hyper (multi lsft lctl lalt lmet)
meh (multi lsft lctl lalt)
;; Numpad layer ;; Numpad layer
numpad (layer-while-held num) numpad (layer-while-held num)
g (tap-hold $tap-time $hold-time g @numpad) g (tap-hold $tap-time $hold-time g @numpad)
@ -64,10 +76,10 @@
fnkeys (layer-while-held fn) fnkeys (layer-while-held fn)
h (tap-hold $tap-time $hold-time h @fnkeys) h (tap-hold $tap-time $hold-time h @fnkeys)
#| #|
Hyper key when V or M are held down to allow for either hand to Meh key when V or M are held down to allow for either hand to
use hyper key for AHK/Raycast shortcuts. use hyper key for AHK/Raycast shortcuts.
|# |#
v (tap-hold $tap-time $hold-time v (multi lsft lctl lalt)) v (tap-hold $tap-time $hold-time v @meh)
m (tap-hold $tap-time $hold-time m (multi lsft lctl lalt)) m (tap-hold $tap-time $hold-time m (multi lsft lctl lalt))
;; Holding Spacebar activates symbol layer ;; Holding Spacebar activates symbol layer
symbols (layer-while-held symbol) symbols (layer-while-held symbol)
@ -82,18 +94,23 @@
(defchords ch $chord-time (defchords ch $chord-time
(w ) w ;; W => W (w ) w ;; W => W
( e) e ;; E => E ( e) e ;; E => E
(w e) ret ;; W + E => Enter (w e) XX ;; W + E => Enter
(i ) i ;; I => I (i ) i ;; I => I
( o) o ;; O => O ( o) o ;; O => O
(i o) bspc ;; I + O => Backspace (i o) XX ;; I + O =>
(s ) @s ;; S => S (s ) @s ;; S => S
( d) @d ;; D => D ( d) @d ;; D => D
(s d) tab ;; S + D => Tab (s d) ret ;; S + D =>
(f ) @f
(f d) tab ;; F + D = Tab
(j ) @j
(j k) esc ;; J + K => Escape
(k ) @k ;; K => K (See defalias) (k ) @k ;; K => K (See defalias)
( l) @l ;; L => L (See defalias) ( l) @l ;; L => L (See defalias)
(k l) esc ;; K + L => Escape (k l) bspc ;; K + L => Escape
(lmet ) (tap-dance $tap-time ((multi lsft lctl lalt lmet) lmet)) ;; LCmd => Hyper Key, LCmd × 2 => LCmd ;; Cmd => Hyper Key, Cmd × 2 => Cmd
( rmet) (tap-dance $tap-time ((multi lsft lctl lalt lmet) lmet)) ;; RCmd => Hyper Key, RAlt × 2 => RCmd (lmet ) (tap-dance $tap-time ((multi lsft lctl lalt lmet) lmet))
( rmet) (tap-dance $tap-time ((multi lsft lctl lalt lmet) lmet))
#| #|
Put simply, the below line allows for toggling a no-bind Put simply, the below line allows for toggling a no-bind
layer for when you may require a standard layout (such as layer for when you may require a standard layout (such as

View file

@ -58,6 +58,7 @@
"zen" "zen"
"obs" "obs"
"krita" "krita"
"sioyek"
]; ];
}; };