diff options
Diffstat (limited to 'alpine-river/config/kanata/config.kbd')
-rw-r--r-- | alpine-river/config/kanata/config.kbd | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/alpine-river/config/kanata/config.kbd b/alpine-river/config/kanata/config.kbd new file mode 100644 index 0000000..aeb84b0 --- /dev/null +++ b/alpine-river/config/kanata/config.kbd @@ -0,0 +1,52 @@ +#| +This minimal config changes Caps Lock to act as Caps Lock on quick tap, but +if held, it will act as Left Ctrl. It also changes the backtick/grave key to +act as backtick/grave on quick tap, but change ijkl keys to arrow keys on hold. + +This text between the two pipe+octothorpe sequences is a multi-line comment. +|# + +;; Text after double-semicolons are single-line comments. + +#| +One defcfg entry may be added, which is used for configuration key-pairs. These +configurations change kanata's behaviour at a more global level than the other +configuration entries. +|# + +(defcfg + #| + This configuration will process all keys pressed inside of kanata, even if + they are not mapped in defsrc. This is so that certain actions can activate + at the right time for certain input sequences. By default, unmapped keys are + not processed through kanata due to a Windows issue related to AltGr. If you + use AltGr in your keyboard, you will likely want to follow the simple.kbd + file while unmapping lctl and ralt from defsrc. + |# + process-unmapped-keys yes +) + +(defsrc + esc del + caps pgup + h j k l pgdn + lsft rsft +) + +(deflayer default + grv _ + @cap _ + _ _ _ _ _ + _ _ +) + +(deflayer arrows + _ home + _ end + h y n u ins + _ _ +) + +(defalias + cap (tap-hold 200 200 esc lctl) +) |