QHotkey icon indicating copy to clipboard operation
QHotkey copied to clipboard

Is there any plan to support Wayland?

Open holazt opened this issue 6 years ago • 10 comments

holazt avatar Dec 27 '17 13:12 holazt

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

  • https://github.com/albertlauncher/albert/issues/309
  • https://blog.martin-graesslin.com/blog/2015/06/global-shortcut-handling-in-a-plasma-wayland-session/

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...

Skycoder42 avatar Dec 27 '17 13:12 Skycoder42

Okay, but thank you.

holazt avatar Dec 27 '17 14:12 holazt

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

Skycoder42 avatar Feb 22 '18 19:02 Skycoder42

@Skycoder42 Thank you.

holazt avatar Feb 23 '18 01:02 holazt

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

FloThinksPi avatar Nov 05 '18 15:11 FloThinksPi

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 ;)

Skycoder42 avatar Nov 05 '18 15:11 Skycoder42

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

Skycoder42 avatar Nov 05 '18 21:11 Skycoder42

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

antis81 avatar Feb 13 '22 12:02 antis81

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: https://github.com/flatpak/xdg-desktop-portal/issues/624

And here's where it's being created: https://github.com/flatpak/xdg-desktop-portal/pull/711

Cuperino avatar Jun 17 '22 14:06 Cuperino

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

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

Mstrodl avatar Nov 27 '22 22:11 Mstrodl