-->
import Quickshell.Hyprland
Global shortcut implemented with hyprland_global_shortcuts_v1.
You can use this within hyprland as a global shortcut:
bind = <modifiers>, <key>, global, <appid>:<name>
See the wiki for details.
WARNING
The shortcuts protocol does not allow duplicate appid + name pairs. Within a single instance of quickshell this is handled internally, and both users will be notified, but multiple instances of quickshell or XDPH may collide.
If that happens, whichever client that tries to register the shortcuts last will crash.
NOTE
This type does not use the xdg-desktop-portal global shortcuts protocol, as it is not fully functional without flatpak and would cause a considerably worse user experience from other limitations. It will only work with Hyprland. Note that, as this type bypasses xdg-desktop-portal, XDPH is not required.
The appid of the shortcut. Defaults to quickshell
.
You cannot change this at runtime.
If you have more than one shortcut we recommend subclassing GlobalShortcut to set this.
The description of the shortcut that appears in hyprctl globalshortcuts
.
You cannot change this at runtime.
The name of the shortcut. You cannot change this at runtime.
If the keybind is currently pressed.
Have not seen this used ever, but included for completeness. Safe to ignore.