Difference between revisions of "paste into vnc with xdotool"
From thelinuxwiki
(Created page with "vnc client = TightVNC Viewer version 1.3.9 this should work for other programs not supporting you clipbaord ==problem== can't paste into vnc, have to type out commands ==s...") |
Latest revision as of 08:35, 18 July 2019
vnc client = TightVNC Viewer version 1.3.9
this should work for other programs not supporting you clipbaord
problem
can't paste into vnc, have to type out commands
solution
- install xdotool
- create a keyboard shortcut - this can be done many ways. you can do it directly with the xserver using xbindkeys or you can do it within the "control panel" options of most desktop environments. you need to bind a key combo to the "paste" function.
example for lxqt desktop
under panel menu, select Preferences > LXQT Settings > Keyboard shortcuts, then Add...
set shortcut key combo
enter for command
sh -c 'sleep 1; xdotool type "$(xclip -o -selection clipboard)"'
or to paste text from mouse highlighted clipboard...
sh -c 'sleep 1; xdotool type "$(xclip -o -selection primary)"'
- copy and paste!