Skycoder42 / QHotkey

A global shortcut/hotkey for Desktop Qt-Applications
BSD 3-Clause "New" or "Revised" License
552 stars 162 forks source link

Is there any plan to support Wayland? #14

Open holazt opened 6 years ago

Skycoder42 commented 6 years ago

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

holazt commented 6 years ago

Okay, but thank you.

Skycoder42 commented 6 years ago

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

holazt commented 6 years ago

@Skycoder42 Thank you.

FloThinksPi commented 5 years ago

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

Skycoder42 commented 5 years ago

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 commented 5 years ago

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

antis81 commented 2 years ago

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

Cuperino commented 2 years ago

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

Mstrodl commented 1 year ago

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

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