3

Is there a way to copy currently selected text into clipboard? I'm trying to make my eastystroke gesture more general than "Ctrl+C" since it doesn't work in every application - for example terminal.

I know I can select with mouse and then paste with middle button, but I want to have option to copy into second clipboard since I track its history in clipit and it won't change when I select something.

I also know that I can change keybindings in terminal but I prefer not to mess with my habits when it comes to "ctrl+c" and terminals.

  • middle mouse click is pretty easy if youre in the terminal already. Ctrl+shift+C is also pretty easy. – j0h Oct 8 '16 at 4:50
9

You can do that using xclip (package xclip, not installed by default):

xclip -out -selection primary | xclip -in -selection clipboard
| improve this answer | |
  • of course, that's it – Jacob Vlijm Jan 14 '15 at 12:29
5

You can use

Ctrl + Shift + C

to copy in the terminal.

| improve this answer | |
  • I assume OP knows that, he even mentions it in the question. – Jacob Vlijm Jan 14 '15 at 11:44
1

Install Diodon clipboard. It has this feature by default.

sudo apt-get install diodon
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.