This is one of the features I miss on Windows (https://github.com/Collective-Software/ClickPaste), I was wondering if there was an alternative to this for Linux?
Essentially instead of pasting all the text from your clipboard, it will type out the contents as though the letters were typed on the keyboard. One by one. This allowed me to “paste” into VMs and other places that I normally couldn’t.
The ol’ google gave me nothing but “How to paste into terminal” posts which is not what I want.
The closest I know of would be
xdotool
which may or may not be useful depending on why you’re trying to do that. Apparentlywtype
is one alternative if you’re on Wayland.Interesting case for a KWin plugin/addon
https://man.archlinux.org/man/extra/xdotool/xdotool.1.en
https://man.archlinux.org/man/extra/wtype/wtype.1.en
Pipe your clipboard contents through either of those depending on your windowing system. I’d recommend putting that in a script and binding it to a keyboard shortcut.
xclip -o -selection clipboard | xdotool keyup Super_L type --delay 100 --clearmodifiers --file -
I use the code above with Win + T in KDE shortcuts to type the content from the clipboard.
I work around this by enabling rdp or ssh on guests as soon as possible and connect from my terminal for ssh, I use remmina for rdp, paste works there.
I don’t know other situations where I would need this.
You have to post X events for the keystrokes. I may have some code around that does something similar, lemme look.