Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
13
rated 0 times [  13] [ 0]  / answers: 1 / hits: 5336  / 1 Year ago, wed, january 11, 2023, 9:52:21

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.


More From » clipboard

 Answers
7

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



xclip -out -selection primary | xclip -in -selection clipboard

[#21699] Thursday, January 12, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
irtuallyefu

Total Points: 429
Total Questions: 97
Total Answers: 119

Location: Hong Kong
Member since Tue, Oct 19, 2021
3 Years ago
irtuallyefu questions
;