Repository navigation
Text Insertion
Text insertion controls how transcribed text reaches the application you are dictating into. TypeWhisper lets you pick a strategy per application and includes a Smart Auto mode that adapts to browsers, terminals, and Wayland sessions.

You set an insertion strategy per application, keyed by process name:
| Strategy | Behavior |
|---|---|
| Auto | Smart per-target selection (see below). |
| Clipboard Paste | Copies the text and pastes it into the target. |
| Direct Typing | Types the text character by character. |
| Copy Only | Copies the text to the clipboard without inserting it. |
Auto-paste includes retry handling and clipboard preservation so your existing clipboard contents are restored after a paste.
Clipboard paste on Wayland is asynchronous — the target reads the selection when it gets around to it, not when the keystroke arrives — so the paste path is ordered explicitly rather than by fixed delays:
-
The clipboard is read back before
Ctrl+Vis sent, confirming it actually serves the dictated text (and re-setting it once if not). This makes the target process the selection offer before the keystroke, and it also catches a silently-failed clipboard write, which would otherwise paste your previous clipboard contents into the document. - Auto-enter waits for the paste to land before sending Enter. Otherwise Enter can overtake an in-flight paste and submit an empty or stale field, with the dictated text arriving in the next message or being lost.
-
Your previous clipboard is restored only after the paste is confirmed, watched through an AT-SPI text-changed signal armed before
Ctrl+Vrather than after a fixed delay that could overwrite a transfer still in progress. An ownership check avoids clobbering a clipboard you changed yourself in the meantime.
When AT-SPI isn't running, steps 2 and 3 fall back to the previous floor delay. No extra delay is introduced by this ordering — the floor simply moves ahead of Enter.
Multi-line text going into a terminal is routed through clipboard paste rather than direct typing, so embedded newlines can't be delivered as a series of Enter keystrokes that execute each line. When the paste keystroke can't be sent, TypeWhisper says so — "Copied to clipboard. Paste into the terminal with Ctrl+Shift+V." — instead of leaving you to guess whether anything happened.
Two v0.13.1 corrections to this path:
- Confirmation is specific to the paste. Any text change in the same app used to count as proof the paste landed; an unrelated change (a chat message arriving, a timestamp updating) could confirm a paste that never happened.
- Non-text clipboard contents are disclosed, not silently mangled. If your clipboard held an image or another rich format, TypeWhisper cannot put it back as text, so it now tells you the clipboard could not be preserved rather than quietly restoring a lossy text copy.
Clipboard and injector helper processes also run under timeouts, so a wedged wl-copy or ydotool cannot hang insertion indefinitely.
The per-app strategy editor (process name → Auto / Clipboard Paste / Direct Typing / Copy Only) lives in the App insertion strategies row on the Dictation settings page.
When a target uses the Auto strategy, TypeWhisper picks per-target:
- Types directly into supported browsers — but falls back to clipboard paste when the window title looks like a webmail composer.
- Types directly into terminals and the Codex CLI, where a synthesized Ctrl+V is not interpreted as paste.
- On Wayland sessions where the focused app can't be identified, prefers direct typing for ASCII text and clipboard paste for non-ASCII text.
- Since v0.19.2 browsers, terminals and Codex windows are only typed into when the text is ASCII or the typing chain can type Unicode (
wtype,xdotool). Withydotool, which drops non-ASCII characters and still reports success, non-ASCII text is pasted instead (Ctrl+Shift+V in terminals). On X11,xdotoolcan drop characters such as the é in "café" in Firefox and gnome-terminal, so Auto no longer trusts it with non-ASCII text either. xterm has no default paste shortcut, so for xterm such text stays on the clipboard and the notice says so.
The resolved backend chain and the one-click ydotool / input-group setup are shown in the screenshot at the top of this page.
The Text-insertion settings panel surfaces the current backend chain for your session and offers a one-click setup flow for the ydotool daemon and input-group membership when those are needed. Since v0.19.1, when the ydotool test keystroke fails, the panel points at Set up ydotool, which grants only your session access to /dev/uinput, rather than at joining the input group.
The privileged part of ydotool setup refuses to modify files it does not own. Both of its targets — the /dev/uinput udev rule and the uinput module-load file — are checked inside the privileged script immediately before writing: a symlink, a non-regular file, or a regular file lacking TypeWhisper's ownership marker causes setup to abort with an explanation rather than truncate whatever was there. If an existing file already achieves the goal, it's left alone and setup reports success.
Text insertion relies on session-appropriate desktop tools:
| Purpose | Tools |
|---|---|
| Clipboard (X11) | xclip |
| Clipboard (Wayland) |
wl-copy / wl-paste
|
| Typing / paste backend (Wayland) |
wtype, ydotool
|
| Typing / paste backend (X11) | xdotool |
The right typing backend is selected per session. Since v0.13.1 xdotool is not used for typing or paste in a Wayland session at all, including for XWayland apps: it drives XTEST, which cannot reach native Wayland surfaces, yet exits 0 either way — so keeping it in the chain meant an insertion could be reported as successful when nothing arrived. (It is still used as a last-resort active-window provider on Wayland, where it can only see XWayland windows. A wrong answer there is not harmless: the detected process also drives profile matching, whether the target is treated as a terminal, how multi-line text is delivered, and whether paste is sent as Ctrl+V or Ctrl+Shift+V.) See Wayland notes for which backend is tried first on wlroots compositors versus GNOME / KDE Wayland, and for the ydotool daemon and input-group requirements.
Enable Lock paste to the initial text field in Dictation to remember the focused field when recording starts and restore it before pasting. This is useful when focus changes while you dictate. If the field is no longer available or cannot be restored safely, the result stays on the clipboard instead of being pasted into the current field.
The option is off by default and needs a running AT-SPI listener. In this release that listener is enabled through Learn corrections from other apps, so that prerequisite also enables correction learning. The option is unavailable when the listener is not running. It depends on the target application's accessibility support and does not guarantee insertion into every application.
Dictation, the prompt palette, prompt actions, transforms and paste-last used to be able to insert at the same moment and restore each other's clipboard. Insertions now run one at a time. A queued insertion checks again that the session is unlocked, and if it cannot re-activate its target window it only copies the text. Text inserted from the recent-transcriptions palette now follows the per-app strategy and terminal rules too.
-
Streamed command results. A spoken command used to type its LLM answer chunk by chunk, so with
ydotoolaccented letters, curly quotes and CJK text were lost. Withydotoolorxdotoolin the chain, commands now insert the finished result in one go: non-ASCII results are pasted, ASCII results are typed. You no longer see the answer appear chunk by chunk in browsers and Codex windows on GNOME and KDE Wayland or on X11. Setting the app to Direct Typing brings streaming back. - Focus moved before the result arrived. The window focused when recording started is compared with the focused window right before auto-paste or auto-Enter. If they differ, the result goes to the clipboard instead. Spoken edits check the window before copying your selection, so another app's selection never reaches the AI provider, and cancel with "Edit canceled: focus moved to another window". With correction learning on, the focused field is checked too, so a result does not land in another field of the same window.
- Recent Transcriptions on KDE. After the palette closed, KWin focused TypeWhisper's main window and the pick was only copied. TypeWhisper now asks KWin to re-activate the window the palette was opened over, and falls back to the clipboard if that window can't be confirmed.
-
Clipboard restore. Plain text copied from a native GTK app on KDE (which lists
SAVE_TARGETS) or from an Xwayland app on GNOME (which listsTARGETS) is restored after a paste again. HTML, images and file lists still block the restore.
-
XWayland apps on Hyprland. XWayland ignores the keymap
wtypeuploads, so dictating into an XWayland window (GTK3, GTK4, JetBrains IDEs and others) typed garbage such as123452678or nothing, and History still said Typed or Pasted. Before tryingwtype, TypeWhisper now askshyprctl activewindow -jwhether the focused window is XWayland. If it is,wtypeis skipped andydotooltypes or pastes. Withwtypeas the only backend, Auto copies the text to the clipboard and suggests setting upydotool, and Direct typing fails instead of typing garbage. Native Wayland windows still usewtype. -
Paste shortcut through ydotool first. GTK3 native-Wayland windows drop
wtype's Ctrl+V whilewtypeexits 0, so Auto reported Pasted with an empty field. Whenydotoolis usable, the paste shortcut now goes through it first;wtypestays the fallback for pasting and stays first for typing. -
Direct typing with only ydotool.
ydotooltypes only the US keymap and drops accents, dashes and CJK while reporting success. Under an explicit Direct typing choice, such text no longer goes toydotool. Ifwtype(orxdotoolon X11) can't type it either, TypeWhisper types nothing, copies the full text to the clipboard without pasting, and the notice suggests Ctrl+V or switching the app to Auto or Clipboard paste. History records CopiedToClipboard. Spoken commands on such a chain insert the finished result instead of streaming it. -
Rich clipboard kept on X11. Auto and Clipboard paste used to leave only the dictated text on the clipboard when you had copied formatted text (for example HTML from a browser). On X11 TypeWhisper now captures every format (up to 16 MB) before pasting and restores them all afterwards. The restored clipboard is owned by TypeWhisper until something else is copied or the app quits, unless a clipboard manager keeps it. Wayland (
wl-copy) serves one type only and is unchanged. - Prompt hotkey results. Running a saved prompt from its hotkey and clicking into another window while the LLM worked pasted the result into that window. The hotkey now records the compositor's window and checks it again before pasting, as dictation does; if focus moved, the result is copied to the clipboard with a warning.
-
Clipboards offered only as COMPOUND_TEXT. Text copied from some X11 apps read as empty, so after a Clipboard Paste or Auto dictation the clipboard held the dictated text instead of what you had copied. TypeWhisper now reads and decodes COMPOUND_TEXT (ISO 8859, GB2312, JIS X0208, KS C 5601 and UTF-8 segments) and restores it after the paste. On GNOME and Hyprland Wayland, where such an owner is bridged without a text type,
wl-pastereads that come back empty or aren't valid text trigger the same fallback. Data the decoder doesn't understand still reads as empty. -
wtype and GTK3 apps on Sway. GTK3 widgets ignore the modifier on
wtype's chords, so withwtypeas the only tool, dictating into gedit or another native GTK3 app recorded Pasted while nothing arrived. On Sway, the paste chord now skipswtypewhen the focused native-Wayland window is a GTK3 app (found withswaymsg -t get_treeand the process's/proc/<pid>/maps). Withoutydotool, the text stays on the clipboard, History records CopiedToClipboard, and the notice suggests setting upydotoolfrom Settings → Text insertion. Firefox, Chromium, Electron and Qt apps still get thewtypepaste. A target whose process can't be inspected is treated as GTK3. Typing throughwtypeis unchanged.
- Wayland notes — typing backend selection and Wayland setup.
- Profiles — per-app and per-URL matching that pairs with insertion strategies.
- Dictation — where auto-paste fits in the dictation workflow.
| Date | Change |
|---|---|
| 2026-06-17 | Initial version. |
| 2026-06-17 | Added Text insertion screenshot. |
| 2026-07-27 | v0.13.0: documented the clipboard-paste ordering (read-back before Ctrl+V, auto-enter gated on delivery, confirmed clipboard restore), terminal multi-line routing, and the fail-closed ydotool privileged setup. |
| 2026-09-07 | v0.13.1: xdotool dropped from the Wayland typing chain (still a last-resort active-window provider), paste confirmation narrowed to the actual paste, non-text clipboard contents disclosed instead of lossily restored, helper subprocesses time-bounded, and the terminal Ctrl+Shift+V fallback message documented. |
| 2026-09-11 | v0.14.1: documented opt-in focused-field paste and its accessibility/correction-learning prerequisite. |
| 2026-10-19 | v0.18.0: insertions are serialized, and the recent-transcriptions palette follows per-app rules. |
| 2026-10-30 | v0.19.1: the ydotool probe-failure advice points at setup, and GTK plain-text clipboards are restored after a Wayland paste. |
| 2026-11-07 | v0.19.2: Unicode-safe Auto typing and streamed commands with ydotool and xdotool, focus-moved checks, the KDE recent-palette focus return, and the SAVE_TARGETS/TARGETS clipboard restore. |
| 2026-11-17 | v0.19.3: wtype skipped for Hyprland XWayland windows, ydotool-first paste, non-ASCII Direct typing on ydotool-only chains, the X11 rich clipboard restore and the prompt hotkey focus check. |
| 2026-11-24 | v0.19.4: COMPOUND_TEXT clipboard restore on X11, GNOME and Hyprland, and the Sway GTK3 paste fallback. |
Home · Repository · Issues · Releases · GPLv3
TypeWhisper for Linux is a community Linux port. Each page lists its own change history in the Changelog section above.
Getting Started
Using TypeWhisper
- Dashboard
- Dictation
- Global Hotkeys
- Text Insertion
- File Transcription
- Recorder
- History
- Dictionary & Term Packs
- Snippets
- Profiles
- Prompts & AI Actions
- Text Cleanup & Formatting
- Long-term Memory
Settings
Plugins
Automation
Platform & Troubleshooting
Project