r/linux_programming • • Dec 23 '18

Global keyboard hook

What would be the best way to intercept keyboard events globally (i.e., in all apps) with ability to modify the keystrokes? root access isn't an issue.

3 Upvotes

2 comments sorted by

View all comments

Show parent comment

1

u/giant-torque Dec 25 '18

Potentially I could "block" the keystrokes by the keyboard hook and to post the updated keystroke as events. This means the implementation has to be in user mode.