Last active
August 20, 2023 04:59
-
-
Save andrewvmail/df298310942829d03dfd72c63792e69f to your computer and use it in GitHub Desktop.
kanata config for linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defcfg | |
linux-dev /dev/input/event15 | |
danger-enable-cmd yes | |
) | |
(defsrc | |
esc 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 | |
) | |
;; The first layer defined is the layer that will be active by default when | |
;; kanata starts up. This layer is the standard QWERTY layout except for the | |
;; backtick/grave key (@grl) which is an alias for a tap-hold key. | |
;; | |
;; There are currently a maximum of 25 layers allowed. | |
(deflayer qwerty | |
@grl 1 2 3 4 5 6 7 8 9 0 - = bspc | |
tab q w e r t y u i o p [ ] \ | |
@xlctrl a s d f g h j k l ; ' ret | |
lsft z x c v b n m , . / rsft | |
esc lmet lalt spc ralt rmet rctl | |
) | |
;; defalias is used to declare a shortcut for a more complicated action to keep | |
;; the deflayer declarations clean and aligned. The alignment in deflayers is not | |
;; necessary, but is strongly recommended for ease of understanding visually. | |
;; | |
;; Aliases are referred to by `@<alias_name>`. | |
(defalias | |
;; tap: backtick (grave), hold: toggle layer-switching layer while held | |
grl (tap-hold 200 200 grv (layer-toggle layers)) | |
;lctrl (tap-hold 200 200 grv (layer-toggle lctrl_layer)) | |
;; tap for capslk, hold for lctl | |
lctrl (tap-hold 500 500 lctrl (layer-toggle lctrl_layer)) | |
xlctrl (multi lctrl (layer-while-held lctrl_layer)) | |
cpgup C-pgup | |
cpgdn C-pgdn | |
lft (multi (release-key lctrl) left) | |
dn (multi (release-key lctrl) down) | |
up (multi (release-key lctrl) up) | |
rgt (multi (release-key lctrl) rght) | |
copyq (cmd copyq "toggle") | |
) | |
(deflayer layers | |
_ _ _ lrld _ _ _ _ _ _ _ @cpgdn @cpgup _ | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_ _ _ _ _ _ _ _ _ _ _ _ _ | |
_ _ _ _ _ _ _ _ _ _ _ _ | |
_ _ _ _ _ _ _ | |
) | |
(deflayer lctrl_layer | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_ _ _ _ _ _ @lft @dn @up @rgt _ _ _ | |
_ _ _ _ _ _ _ _ _ _ _ _ | |
_ _ _ _ _ _ _ | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment