Everything I read says it’s a feature enabled in what ever compositor you choose, if your compositor supports it. Why isn’t there a general purpose keybinding program like setxkbmap
? Does it just not exist yet or must it be built into the compositor?
I’ve read [this stackexchange thread] on something related but it all seems to be using XKB which should imply I’m using XWayland?
I used to use kmonad, but I recently migrated to keyd, since with keyd I can bind key combos. Though kanata should also get the job done.
Keyd won it out for me, because it can do combos (for example, I press both shift keys to toggle capslock), and it has the simplest config format.
What’s better about these three options, in comparison with setxkbmap, is that they will also remap keys in the tty, not just in the graphical shell.
I just tried keyd a day or two ago and I’m super taken with it.
I just wanted to make Meta+Arrows generate PgUp/PgDn/Home/End because I’ve really grown to like laptops that do that with Fn (And I was playing with a hacked Chromebook whose keyboard does those soft with Ctrl+Shift+Arrow in software on ChromeOS so you’ve got to do something).
I’m quite impressed. The configuration format is sane, the daemon’s runtime footprint is tiny, and it works across VTs, X, and Wayland because it’s a virtual keyboard emitting events. The historical options have like…0-1 of those properties. Also the virtual keyboard takes bus ID 0fac:0ade, and who doesn’t like a god hex pun.
Yep keyd is fantastic. I also have a chromebook laptop which I installed NixOS on, and the keyboard is an absolute disaster. Keyd has been a god send.