Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> injecting key strokes or mouse input into applications can only be done by even worse hacks.

Hum I don't understand this, I've been injecting key strokes for a decade on any Linux-running system using uinput (which creates a new virtual /dev/input). Is this somehow broken by wayland? (I haven't ever really used wayland, nor do i understand how it works)



AFAIK uinput does work just fine with Wayland. I've used sc-controller under Wayland before without any issues, and I believe it makes use of uinput


I use Wayland + Sway plus ydotool(d) on a dailty basis (e.g. with libinput-gestures), as well as kbct to rebind keys (main purpose caps to esc and some ctrl/alt/meta/fn rebinds). Both use uinput. Things I could do with xdotool I can also do with ydotool.


I found this comment looking for exactly this. Can you share any advice / config / dotfiles?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: