fix: Linux/Wayland support with evdev, toggle-in-PTT, debug mode#1
Merged
mathew-cf merged 1 commit intomathew-cf:mainfrom Mar 12, 2026
Merged
fix: Linux/Wayland support with evdev, toggle-in-PTT, debug mode#1mathew-cf merged 1 commit intomathew-cf:mainfrom
mathew-cf merged 1 commit intomathew-cf:mainfrom
Conversation
- Replace rdev (X11-only) with evdev for global hotkey on Linux - hotkey_linux.rs: reads /dev/input/event* directly, works on Wayland - hotkey_macos.rs: rdev-based backend (unchanged behavior on macOS) - Detailed error diagnostics for missing input group permissions - Fix PTT on Linux: suppress KeyUp+Toggle double-fire from evdev - suppress_next_toggle flag prevents re-starting recording on key release - Terminal keyboard (space) now works as toggle even in PTT mode - Fix welcome banner shifting (raw mode \n vs \r\n race) - Print banner before spawning keyboard thread - Add 10Hz UI tick timer for recording duration and transcribing spinner - Add --debug mode: no animated display, plain log lines to stderr - Logs key events, device name, audio levels, duration, transcript - Skips OpenCode injection and connectivity check - --port not required in debug mode - Uses \r\n for correct output in raw mode - Suppress JACK/ALSA startup noise via env vars (JACK_NO_START_SERVER etc) - Update welcome banner to show both hotkey and terminal toggle inputs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replace rdev (X11-only) with evdev for global hotkey on Linux
Fix PTT on Linux: suppress KeyUp+Toggle double-fire from evdev
Fix welcome banner shifting (raw mode \n vs \r\n race)
Add 10Hz UI tick timer for recording duration and transcribing spinner
Add --debug mode: no animated display, plain log lines to stderr
Suppress JACK/ALSA startup noise via env vars (JACK_NO_START_SERVER etc)
Update welcome banner to show both hotkey and terminal toggle inputs