bash - How to make kate copy (ctrl+c) with xdotool -


i trying make kate editor copy current line or current selection clipboard using xdotool. using xdotool move cursor , delete , other actions not copy. copy shortcut (ctrl+c) works if press in kate not when call xdotool.

here code. surprisingly, result of info empty after @ end.

dummyclip="dummy!!!" echo -n $dummyclip | xclip -selection clipboard xdotool search --name kate key ctrl+c info=$(xclip -o -selection clipboard) 

i have struggled lot. highly appreciated.


Comments

Popular posts from this blog

angularjs - Showing an empty as first option in select tag -

qt - Change color of QGraphicsView rubber band -

c++ - Visible files in the "Projects" View of the Qt Creator IDE if using the CMake build system -