this post was submitted on 29 Apr 2024
475 points (96.3% liked)

linuxmemes

20761 readers
1691 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS
 

If anyone wants to give an ELI5 or a link to a video that ELI5 I'd be incredibly thankful

I swear that all the stuff I find is like super in depth technical stuff that just loses me in no time flat

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 4 months ago

Yes, on wayland you will need to run a particular program as root to be able to read all keyboard input. See xremap or mouseless (unmaintained).

Since you already give the program plenty of trust to let it read all your inputs, I think running it as root is not outrages.

That being said, in an ideal scenario, we would be able to set fine-grained permissions like, allow to read keyboard input but deny communication with other app, networks, and storage etc. But I don't know any OS that can do this.

A more straightforward way to remap key is to get a keyboard with QMK firmware, that doesn't cover all the use case of ahk, xremap, or mouseless, but that don't require you to trust another program to run as root.