phosphor-shortcuts

Pluggable global-shortcut backends.

A Registry and IBackend pair. Client code registers shortcut IDs; backends translate them into platform shortcut primitives. Ships with a KGlobalAccel backend, an XDG Portal backend, and a D-Bus fallback.

Full API →

Key types

Registry
Client-facing API: bind / rebind / unbind shortcut ids with callbacks.
IBackend
Abstract backend; shipped impls are KGlobalAccel, XDG-Portal, and D-Bus.
IAdhocRegistrar
Transient binding (Phosphor::Shortcuts::Integration) that skips persistent storage.
createBackend
Factory free function: builds the right IBackend from a BackendHint.
BackendHint
Enum selecting or auto-detecting the backend (Auto / KGlobalAccel / Portal / DBus).

Dependencies

References