Skycoder42/QHotkey

Is there any plan to support Wayland?

holazt opened this issue · 10 comments

Is there any plan to support Wayland?

As far as I know, this is simply not possible with wayland atm. See:

So for now, there is no way to add this. And if the posts above are correct, in the future such solutions will depend on the compositor/window manager itself. Unless it becomes part of "standard wayland", there won't be any global solution, making it even harder to implement.

Once wayland becomes more usable and used on some major desktop platforms, I will look into this again, but for now, it's a wontfix...

Okay, but thank you.

Reopend to not forget this. I would really like to get hotkeys working on wayland too.

@Skycoder42 Thank you.

Hey @Skycoder42 since wayland devs apearently dont want to add hotkey support ( see albertlauncher/albert#309 ) how about registering the hotkeys against the desktop environment programatically ? E.g. Add the hotkeys to Gnome or KDE

Shure, I'd be fine with that. The only part where that gets complicated is dependencies and the decision, which "backend" (i.e. gnome or KDE) to use. Furthermore, I do not know whether they even have an API for doing this, so I would have to do some research on that.

If you have any knowledge regarding these points, feel free to share them here. PRs are always welcome as well ;)

Just collecting some files that might come in handy when trying to implement this sometime in the future. Those are presumably the changes needed to register a shortcut in KDE 5

What about an evdev/libinput hook based implementation? Found libuiohook.

Various Linux desktop environment developers are leaning towards creating an xdg-portals API that enables the creation of global shortcuts that work with Wayland and is compatible with all desktop environments.

Here's the thread to that discussion:
flatpak/xdg-desktop-portal#624

And here's where it's being created:
flatpak/xdg-desktop-portal#711

And here's where it's being created: flatpak/xdg-desktop-portal#711

Looks like that PR was merged... Any news?