kanata: add graphite
This commit is contained in:
parent
24ef53bc9e
commit
e820173a12
2 changed files with 62 additions and 0 deletions
49
modules/services/kanata/main.kbd
Normal file
49
modules/services/kanata/main.kbd
Normal file
|
@ -0,0 +1,49 @@
|
||||||
|
(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 comp 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 [ ]
|
||||||
|
@esc a s d f g h j k l ; ' \ ret
|
||||||
|
lsft < z x c v b n m , . / rsft
|
||||||
|
@lay lmet lalt spc ralt rmet comp rctl
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
(deflayer graphite
|
||||||
|
Backquote 1 2 3 4 5 6 7 8 9 0 [ ] bspc
|
||||||
|
tab b l d w z ' f o u j ; =
|
||||||
|
@esc n r t s g y h a e i , \ ret
|
||||||
|
lsft < q x m c v k p . - / rsft
|
||||||
|
@lay lmet lalt spc ralt rmet comp rctl
|
||||||
|
)
|
||||||
|
|
||||||
|
;; (deflayer graphite-2
|
||||||
|
;; grv ! @ # $ % ^ & * S-9 S-0 { } bspc
|
||||||
|
;; tab B L D W Z _ F O U J : +
|
||||||
|
;; caps N R T S G Y H A E I ? | ret
|
||||||
|
;; lsft < Q X M C V K P > apo < rsft
|
||||||
|
;; lctl lmet lalt spc ralt rmet comp rctl
|
||||||
|
;; )
|
||||||
|
|
||||||
|
(deflayer layouts
|
||||||
|
_ _ _ _ _ _ _ _ _ _ _ _ _ _
|
||||||
|
_ @qwe _ _ _ _ _ _ _ _ _ _ _
|
||||||
|
caps _ _ _ _ @gra _ _ _ _ _ _ _ _
|
||||||
|
_ _ _ _ _ _ _ _ _ _ _ _ _
|
||||||
|
_ _ _ _ _ _ _ _
|
||||||
|
)
|
||||||
|
|
||||||
|
(defalias
|
||||||
|
esc (tap-hold-release 200 200 esc lctl)
|
||||||
|
;; spc (tap-hold-release 200 200 spc @sym)
|
||||||
|
qwe (layer-switch qwerty)
|
||||||
|
gra (layer-switch graphite)
|
||||||
|
;; la1 (layer-toggle graphite-2)
|
||||||
|
lay (layer-toggle layouts)
|
||||||
|
)
|
13
modules/services/kanata/module.nix
Normal file
13
modules/services/kanata/module.nix
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
{
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
services.kanata = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
keyboards.daskeyboard = {
|
||||||
|
devices = ["/dev/input/by-id/usb-Metadot_-_Das_Keyboard_Das_Keyboard-event-kbd"];
|
||||||
|
config = builtins.readFile (./. + "/main.kbd");
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue