Paste Clipboard on Linux with xdotool (Ctrl + V into terminal or type)

Ctrl + V (paste shortcut) doesn’t work everywhere that you expect it to work.

For example, using noVNC, I really need to paste certain strings that I’ve already copied to clipboard with Ctrl + C.

The program for the job is xdotool.

sudo apt-get install xdotool

Open your keyboard shortcuts tool, on Xfce it’s in Keyboard settings and Application Shortcuts.

sh -c 'sleep 0.5; xdotool type "$(xclip -o -selection clipboard)"'

Leave a Reply

Your email address will not be published. Required fields are marked *