this post was submitted on 24 Aug 2023
20 points (100.0% liked)

Linux

4963 readers
335 users here now

A community for everything relating to the linux operating system

Also check out !linux_memes@programming.dev

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 1 year ago
MODERATORS
 

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?

all 8 comments
sorted by: hot top controversial new old
[–] 4ffy@lemmy.ml 5 points 1 year ago

Xremap, despite the name, supports both X and Wayland, and can be used to move modifier keys around. Configuration is done with YAML but is otherwise pretty easy. I personally use it for full Emacs keybind emulation.

[–] leggettc18@programming.dev 2 points 1 year ago (1 children)

Personally, I’ve used interception-tools with the caps2esc plugin. Not the easiest to set up but it allows me to press caps lock for esc and hold it for ctrl. It bypasses the lack of a programs being able to read keystrokes of other programs by intercepting them closer to the hardware level. You can also do lots of other cool stuff with it, but I’ve yet to find anything else that lets caps lock work as both esc and ctrl.

load more comments (1 replies)
[–] oessessnex@programming.dev 1 points 1 year ago

XKB config files work under sway without XWayland.

If you are using kde, then this feature is right in the settings menu. I have caps lock bound to compose. I dunno about other DE's.