logoalt Hacker News

dzogchentoday at 4:20 PM6 repliesview on HN

It is a damn shame that tools like xdotool (automation) and sxhkd (global keybinds) are impossible to recreate under Wayland.


Replies

craftkillertoday at 4:37 PM

Not impossible, it just needs to be implemented at a different layer. The compositor needs to expose some API for global hotkeys. For example, I found this with ~2 minutes of Googling: https://wayland.app/protocols/hyprland-global-shortcuts-v1

show 3 replies
zwaragtoday at 4:53 PM

Not only that. A11y is also quite hard. Tools that are simple to implement thanks to good a11y apis - for example on macos, the tool rcmd or homerow - are super hard to do in Wayland.

j16sdiztoday at 4:27 PM

Not literally impossible. You just need to write your own composer!

Krutoniumtoday at 4:40 PM

wdotool exists, and global hotkeys are a thing under wayland, but is desktop dependent. KDE allows it by default, Gnome can be made to do it as well with an extension.

flexagoontoday at 4:40 PM

ydotool exists

https://github.com/ReimuNotMoe/ydotool

show 1 reply
James_Ktoday at 4:44 PM

I'm using Sway right now and I have key binds. Not sure why you think that's impossible.

show 1 reply