473
I don't know who Wayland is
(i.imgflip.com)
Hint: :q!
Sister communities:
Community rules (click to expand)
1. Follow the site-wide rules
sudo
in Windows.Please report posts and comments that break these rules!
It is the same on Windows, people can put a ahk script in your autostart, logs your password and send it to anyone on the internet, all without even invoking UAC.
So yeah, wayland is kind of important...
Is there a way to designate specific programs to be able to still have global access to your input? For instance specifically for AHK-type activities.
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.