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

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

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

php - Cloud9 cloud IDE and CakePHP -