forked from jtroo/kanata
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kanata.kbd
57 lines (43 loc) · 1.93 KB
/
kanata.kbd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
(defcfg
process-unmapped-keys yes
windows-altgr add-lctl-release
)
(defsrc
grv 1 2 3 4 5 6 7 8 9 0 - = bspc
tab q w e r t y u i o p [ ] \
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
)
(deflayer qwerty
grv 1 2 3 4 5 6 7 8 9 0 - = bspc
tab q w e r t y u i o p [ ] \
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
)
(defalias
lalt (multi alt (layer-while-held red))
ralt (multi alt (layer-while-held blue))
left (multi (release-key alt) left) ;; release alt if held and also press left
right (multi (release-key alt) rght)
down (multi (release-key alt) down)
up (multi (release-key alt) up)
bspc (multi (release-key alt) bspc)
del (multi (release-key alt) del)
)
;; left and right behave differently using alt and altgr
(deflayer blue
grv _ _ _ _ _ _ _ _ _ _ _ _ bspc
_ _ _ @left @right _ _ _ _ _ _ _ _ _
caps _ @bspc @del ret _ _ @left @down _ _ _ ret
lsft _ _ _ _ _ _ _ _ _ _ rsft
lctl lmet _ spc ralt rmet rctl
)
(deflayer red
grv _ _ _ _ _ _ _ _ _ _ _ _ bspc
_ _ _ @left @right _ _ _ _ _ _ _ _ _
caps _ @bspc @del ret _ _ @left @down _ _ _ ret
lsft _ _ _ _ _ _ _ _ _ _ rsft
lctl lmet _ spc ralt rmet rctl
)