Skip to content

Add a persistent, menu-configurable push-to-talk key - #7

Open
adpadillar wants to merge 1 commit into
digimata:masterfrom
adpadillar:feature/ui-configurable-hotkey
Open

Add a persistent, menu-configurable push-to-talk key#7
adpadillar wants to merge 1 commit into
digimata:masterfrom
adpadillar:feature/ui-configurable-hotkey

Conversation

@adpadillar

@adpadillar adpadillar commented Jul 29, 2026

Copy link
Copy Markdown

Slop warning, vibecoded PR using 5.6 Sol. Feel free to close but I think it can be useful

--- everything from here down is AI generated ---

Third-party keyboards such as Logitech models commonly handle Fn entirely in firmware, so macOS never receives the event Parrot currently requires. This makes the daemon appear to run normally while push-to-talk can never start. The README advertises a hotkey override, but the corresponding CLI option was not implemented.

This adds a checked Push-to-talk key submenu to the menu-bar UI with left/right Option, Command, Control, and Shift alternatives. Selections take effect immediately, persist through UserDefaults, and can also be set with the documented --hotkey option. Left/right modifiers are distinguished by hardware keycode because each pair shares a CGEvent flag, and the Fn-specific doctor check is skipped when Fn is not selected.

Push-to-talk key menu

@adpadillar
adpadillar force-pushed the feature/ui-configurable-hotkey branch from 5c40e9e to 37d9676 Compare July 29, 2026 20:16
@dremnik

dremnik commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Haha appreciate the vibe coding warning at the top. will review this later this evening or tomorrow!

@adpadillar

Copy link
Copy Markdown
Author

yep also happy to follow up if needed @dremnik, really just made this change for myself and pushed to see if it made sense for others

@thetoaster

thetoaster commented Jul 30, 2026

Copy link
Copy Markdown

great addition. especially seens it seems the command from documentation isn't working

parrot --hotkey right-option
gives me:
Error: Unknown option '--hotkey'

@tomiiide

Copy link
Copy Markdown

Nice, looks like a lot of us are feeling this pain

FernandoGomes83 added a commit to FernandoGomes83/parrot that referenced this pull request Jul 31, 2026
FernandoGomes83 added a commit to FernandoGomes83/parrot that referenced this pull request Jul 31, 2026
Default inject mode is now paste (⌘V with full pasteboard
snapshot/restore) — terminals and Electron apps drop synthesized
unicode key events but all handle paste. --inject-mode type-unicode
keeps the old behavior. Hotkey/overlay parts of digimata#4 were skipped;
they are superseded by the digimata#7 merge.
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.

4 participants