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.

  • kbal
    link
    fedilink
    120 minutes ago

    The closest I know of would be xdotool which may or may not be useful depending on why you’re trying to do that. Apparently wtype is one alternative if you’re on Wayland.

  • trevor
    link
    fedilink
    English
    13 hours ago

    Espanso can do way more than just that, but it has a clipboard backend that you can use.

  • @[email protected]
    link
    fedilink
    2
    edit-2
    6 hours ago
    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.

  • @[email protected]
    link
    fedilink
    17 hours ago

    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.

  • @solrize
    link
    17 hours ago

    You have to post X events for the keystrokes. I may have some code around that does something similar, lemme look.