-
As the title says, I want Shift+Space = Backspace/Delete depending on which Shift was held. My current config (swaps Esc and Caps): (defsrc esc caps)
(deflayer default caps esc) I tried the following ( (defsrc esc caps lsft spc)
(defalias bksp (layer-while-held alter))
(deflayer default caps esc @bksp spc)
(deflayer alter caps esc @bksp bspc) Completely new to Kanata and quite lost 😓 Any help, suggestions, or guidance would be much appreciated. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Try these: https://jtroo.github.io/config.html#fork |
Beta Was this translation helpful? Give feedback.
-
For the sake of completeness, and for anyone (including myself) referring to this thread in the future, here's how I did it in NixOS: services.kanata = {
enable = true;
keyboards = {
"kbd" = {
config = ''
(defsrc)
(deflayer default)
(defoverrides
(esc) (caps)
(caps) (esc)
(lsft spc) (bspc)
(rsft spc) (del)
)
'';
extraDefCfg = ''
process-unmapped-keys yes
'';
};
};
}; Example config (commit permalink): cybardev/nixos-dotfiles/configuration.nix |
Beta Was this translation helpful? Give feedback.
Thanks. Sorry for missing that obvious bit. 😅 Makes sense that if it's not in
defsrc
, Kanata won't process it unless explicitly opted-in.The following works for me: