Skip to content

Use portal hotkeys on Wayland without keyboard device access - #17

Merged
DevanMetz merged 1 commit into
mainfrom
codex/portal-hotkeys
Oct 28, 2026
Merged

DevanMetz merged 1 commit into
mainfrom
codex/portal-hotkeys

Conversation

@DevanMetz

Copy link
Copy Markdown
Owner

Wayland toggle and pick hotkeys now prefer the GlobalShortcuts portal, avoiding keyboard device permissions when supported. Rebinding registers a fresh session with the new preferred triggers. Missing or refused portal registration falls back to evdev; X11 grabs and Windows behavior are unchanged. Reuses zbus and updates PARITY.md.

Validation: cargo build; cargo clippy --all-targets -- -D warnings; cargo test (108 passed, 4 ignored); cargo fmt --check; cargo check --target x86_64-pc-windows-gnu. Includes trigger conversion, backend selection, and private D-Bus registration/rebinding/refusal tests.

Limits: live Wayland compositor approval was not tested headlessly. The desktop controls final shortcuts and may prompt again on rebind. Evdev fallback still requires readable keyboard devices and does not consume keys.

@DevanMetz
DevanMetz merged commit 9be5f2d into main Oct 28, 2026
3 checks passed
@DevanMetz
DevanMetz deleted the codex/portal-hotkeys branch October 28, 2026 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant