diff options
| author | kkard2 <[email protected]> | 2024-08-05 20:24:59 +0200 |
|---|---|---|
| committer | kkard2 <[email protected]> | 2024-08-05 20:25:03 +0200 |
| commit | aebda70220fdb997a400bf4fa5f5ece7bb9f034f (patch) | |
| tree | ea728654244a5f5e255606d3548c7f727c9bf2f1 /kanata/kanata.kbd | |
| parent | 3063a4a562c106e78fd222f698c04a5d448e2aac (diff) | |
kanata and cleanup
Diffstat (limited to 'kanata/kanata.kbd')
| -rw-r--r-- | kanata/kanata.kbd | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/kanata/kanata.kbd b/kanata/kanata.kbd new file mode 100644 index 0000000..b559d14 --- /dev/null +++ b/kanata/kanata.kbd @@ -0,0 +1,49 @@ +#| +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 + caps + h j k l + lsft rsft +) + +(deflayer default + @cap + _ _ _ _ + _ _ +) + +(deflayer arrows + _ + left down up rght + _ _ +) + +(defalias + cap (tap-hold-press 200 200 esc (layer-toggle arrows)) +) |
