tauri-apps / global-hotkey

Global hotkeys for Desktop Applications.
Apache License 2.0
153 stars 18 forks source link

Global Shortcut support on Wayland #28

Open wusyong opened 2 years ago

wusyong commented 2 years ago

Global Shortcut on Linux only works on x11 because wayland-protocols hasn't define anything yet. There's a RFC about this. While we can use some workaround or implement one our own, it won't be supported by all DEs. We'll have to wait wayland decide to add this.

Pajn commented 2 years ago

There is now a desktop portal for this https://github.com/flatpak/xdg-desktop-portal/pull/711

Draft implementation in KDE: https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/merge_requests/80 https://invent.kde.org/libraries/xdg-portal-test-kde/-/merge_requests/6

Gnome and wlroots only have tracking issues atm: https://gitlab.gnome.org/GNOME/xdg-desktop-portal-gnome/-/issues/47 https://github.com/emersion/xdg-desktop-portal-wlr/issues/240

ShellWen commented 11 months ago

org.freedesktop.portal.GlobalShortcuts has gained widespread support; all that is needed is for someone to write the D-Bus communication.