You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add an option to insert dictation without adding it to clipboard #391
Dictate on KDE Plasma 6.8 Wayland (kwin_wayland 6.8.0, Hex 0.0.0-dev-221) without losing the current clipboard. Hex copies every non-empty transcript to the clipboard with wl-copy and then sends Ctrl+V, so whatever I had copied before is replaced. I want a choice: clipboard + paste (current behavior), or direct insertion that leaves the clipboard untouched — for example, when I still need a copied URL, path, or snippet for the next paste.
What would help?
A toggle such as “Insert via clipboard” (on/off), or an output setting with “Clipboard + paste” and “Type directly”. In direct mode Hex should not call wl-copy or change the clipboard at all; it should send the transcript to the focused window instead. If direct typing is not feasible on Wayland, restoring the previous clipboard after the paste would also solve the loss, though it can race with clipboard managers.
Keeping your clipboard intact is a fair request, but Hex is built around clipboard paste. On Linux it leaves the transcript on the clipboard on purpose, and restoring all clipboard formats is listed as not built yet. On KDE Plasma Wayland, Hex already sends its paste keystroke through the RemoteDesktop portal, so typing text through that same portal session is a possible way in, but it would be new work.
Things we need to work out
Hex's rules make clipboard paste the only way text gets inserted, and Linux deliberately keeps the transcript on the clipboard, so a direct mode changes both rules.
Typing through the portal or wtype sends key symbols that depend on the keyboard layout, so Unicode, accents and long transcripts may come out wrong or slowly.
Restoring the old clipboard means saving every format it held, and it can race with KDE's clipboard manager (Klipper) or anything you copy right after dictating.
Questions for you
Would typing directly be acceptable even if it's slower and may skip characters your keyboard layout can't produce?
Would restoring only plain text from your earlier clipboard be enough, or do you often have images or files copied?
Do you use Klipper or another clipboard manager that would record each transcript anyway?
Activity
thdxr commentedon Oct 29, 2026
Thanks for the suggestion!
Keeping your clipboard intact is a fair request, but Hex is built around clipboard paste. On Linux it leaves the transcript on the clipboard on purpose, and restoring all clipboard formats is listed as not built yet. On KDE Plasma Wayland, Hex already sends its paste keystroke through the RemoteDesktop portal, so typing text through that same portal session is a possible way in, but it would be new work.
Things we need to work out
Questions for you
We'll take a closer look.
— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊
fix(linux): restore the previous clipboard after a paste
fix(linux): restore the previous clipboard after a paste (#415)
thdxr commentedon Oct 29, 2026
Thanks @shashankx86 for raising this! Hex on Linux now restores your previous clipboard after it pastes a dictation, by default, just like on macOS. Text, rich text and images all come back, and if the clipboard was empty before, it stays empty. It ships in the next build: https://github.com/anomalyco/hex#install-hex
— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊