Live Chat!

compromise copy and paste schemes in linux

2 votos Vota!!

April 25th, 2007 mysurface Posted in Common, autocutsel, nohup | Hits: 18267 |

In Linux, usually we have two major schemes for copy and paste. We can copy by pressing control+c , paste by pressing control+v ( right click and select copy or paste in context menu) in various GTK/KDE application. Another ways of perform copy and paste is highlight the text and hit middle mouse click.

Certain application only support one of them, virtual terminal such as xterm, aterm, rxvt etc uses only highlight for selection and middle click for paste. So sometimes you may having issues copy text from Firefox web browser to your xterm or wise versa.

Therefore, autocutsel comes to help. By running autocutsel, you may compromise both ways of copy and paste. The simple way to run autocutsel is open a terminal, and type the line bellow.

nohup autocutsel &

You now can close your terminal and enjoy your copy and paste. To know what is nohup? check out Don’t terminate even I close the terminal.

Unfortunately, autocutsel is not in Ubuntu repo (I doubt it is in any other distro’s repo too, but I am not too sure too.), you couldn’t apt-get it. Therefore, you need to download the source and compile by yourself. Check out the hints from installing from tarball if you have no idea how to compile.

[中文翻译]

One Response to “compromise copy and paste schemes in linux”

  1. Just to let you know, KDE has an application named klipper which is started by default. Beside keeping the last X (configurable) clipboard entries or automatically taking actions on specific clipboard strings, it also has this option to keep both clipboards same or separated, just as your liking.

Leave a Reply

Security Code: