Change the hold-to-talk key¶
YazSes is hold-to-talk: you hold a key, speak, and release. By default the key is a modifier that never collides with normal typing:
- Linux:
right_alt - macOS:
right_option - Windows:
right_ctrl
Show the current key¶
This prints the hold-to-talk (dictation) key, the command key if one is set, and the full list of valid choices.
Set a new key¶
Valid keys are:
Choose a dedicated modifier (right_alt, right_ctrl, or right_shift) that you don't otherwise use. Avoid space — you'd trigger dictation every time you type a space. A right-hand modifier is a good pick because most shortcuts use the left-hand ones, so it stays free.
Tip: on some Linux desktops
right_alt(AltGr) is bound to compose/special characters, and in VS Code a bareAltpress can open the menu bar. If your chosen key does something unexpected, switch toright_ctrl.
Add a dedicated command key¶
By default, voice commands (like "scratch that", "new line", "undo") are auto-detected on the same key you dictate with. If you want an unambiguous split — one key that always types text, another that always runs commands — set a command key:
yazses hotkey command right_ctrl # dictate on right_alt, commands on right_ctrl
yazses restart # apply
Now:
- Hold the dictation key → whatever you say is typed as text.
- Hold the command key → whatever you say is parsed as a command and never typed as literal text. An unrecognised phrase is simply ignored, not inserted.
The command key must differ from your dictation key — YazSes refuses to set them to the same key. Remove the command key (back to auto-detect) with:
Under the hood¶
yazses hotkey set writes [hotkey] key and yazses hotkey command writes [hotkey] command_key in your config.toml, using a comment-preserving writer. You can also edit these keys by hand; run yazses restart afterward either way.