Package-level declarations

Types

Link copied to clipboard
data class BoundShortcut(val id: String, val description: String?, val triggerDescription: String?)

Represents a bound shortcut as returned by the portal.

Link copied to clipboard
class GlobalShortcutsPortal(connection: DBusConnection)

Wrapper around the org.freedesktop.portal.GlobalShortcuts D-Bus interface. Provides convenient methods to register and listen for global keyboard shortcuts.

Link copied to clipboard
data class Shortcut(val id: String, val description: String, val preferredTrigger: String)

Represents a global shortcut definition.

Link copied to clipboard
data class ShortcutActivation(val shortcutId: String, val timestamp: Long, val activated: Boolean)

Represents a shortcut activation or deactivation event.

Properties

Link copied to clipboard

Option key for the activation token used in ConfigureShortcuts. This token can be used to activate the configuration window.

Link copied to clipboard

The result key for the shortcuts array returned in BindShortcuts and ListShortcuts responses.

Link copied to clipboard

Shortcut property key for the description.

Link copied to clipboard

Shortcut property key for the preferred trigger (keyboard shortcut).

Link copied to clipboard

Shortcut property key for the trigger description (human-readable).