Skycoder42 / QHotkey

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

xdg-desktop-portal org.freedesktop.portal.GlobalShortcuts #89

Open ManuelSchneid3r opened 1 year ago

ManuelSchneid3r commented 1 year ago

Global shortcuts on (most) linux systems seem to get as straightforward as macos and windows.

This is a thing. freedesktop.org, Fedora, Flatpak is behind it and probably most platforms already implemented the org.freedesktop.portal.GlobalShortcuts interface.

Please use it.

ManuelSchneid3r commented 1 year ago

This also solves #14 .

Yuri-K7 commented 9 months ago

I'd really like this to be implemented to get https://github.com/kamui-fin/gazou working on Wayland.

The protocol seems quite complex, one way to do it could be to use libportal, but the global shortcut portal is still unimplemented : https://github.com/flatpak/libportal/issues/134.

Cuperino commented 4 months ago

Here's the discussion that lead to the XDG GlobalShortcuts portal's creation: https://github.com/flatpak/xdg-desktop-portal/issues/624

Copied from there, here are two app implementations done by Aleix Pol: