Unfortunately, the Wayland folks did not make an early commitment to a compositor-agnostic input plumbing scheme, so global hot keys and virtual inputs (eg. autotype) are compositor-specific hacks or broken attempts to use an inadequate protocol at the moment, if the compositor you are running happens to support them.
As of about a year ago there is a global-shortcuts portal in xdg-desktop-portal but the API is a little ridiculous, missing critical features (eg. there is no good way to get a window title to target), and requires clients (or at least client toolkits) to be specifically aware of it, so there may be another perturbation before wide adoption of a standard.
AFIK sway doesn't currently have either an portals based solution or an equivalent to Hyprland's "pass" feature that lets you hard-code specific key combinations to be passed to specific programs in the compositor configuration.
1 comment
Unfortunately, the Wayland folks did not make an early commitment to a compositor-agnostic input plumbing scheme, so global hot keys and virtual inputs (eg. autotype) are compositor-specific hacks or broken attempts to use an inadequate protocol at the moment, if the compositor you are running happens to support them.
As of about a year ago there is a global-shortcuts portal in xdg-desktop-portal but the API is a little ridiculous, missing critical features (eg. there is no good way to get a window title to target), and requires clients (or at least client toolkits) to be specifically aware of it, so there may be another perturbation before wide adoption of a standard.
AFIK sway doesn't currently have either an portals based solution or an equivalent to Hyprland's "pass" feature that lets you hard-code specific key combinations to be passed to specific programs in the compositor configuration.