About Us | Donate! | Contribute! | Report Problems
Introduction to the Xwindows clipboard (Page 1 of 1)

Written by Steve Lake
Posted on: Aug 29, 2008 at 07:37am
Section: Tutorials
Printer Friendly Version
Legacy URL

One of the things that amazes a lot of new users to Linux is how flexible the clipboard is.  It's one of the many features of Linux that I've come to depend upon greatly.  Without it, life could go on, but it would be much, much more difficult.  So I'm going to give you a brief introduction to it, and then allow you to do a little exploring on your own, because exploring and learning are half the fun of using Linux.  

The first thing to know is that the Xwindows clipboard is what is commonly known as a "two level" or "two layer" clipboard.  In comparison, the clipboards used on MacOS and Windows are only single layer.  This means that they can only hold one thing at a time.  A two layer clipboard can, as you can obviously guess, hold two separate items, one in each layer.  The advantages of this are as interesting as the methods by which each part is accessed and used.

The first layer is your typical copy and paste layer, accessed and used via the ctrl-c, ctrl-v, and ctrl-x key combinations.  The second layer is different, as it is not keyboard accessible, and slightly limited in comparison to the first layer.  This is because it is only capable of copy and paste, whereas level one is able to do copy, paste, and cut.  To copy using the second layer of the clipboard, simply highlight a piece of text, and then either go to another window and paste immediately, or click off the text to store it for later.  To paste, simply put your cursor where you want the text to be inserted, and then click your mouse wheel to paste.

The second layer is also further limited in that it can only copy and paste text.  It is also capable of copying files, such as images, but only if they're part of the page, and text, being copied.  It is impossible to copy stand alone files on the second layer, but this is easily achieved on the first layer.  Now these really aren't new features to the Xwindows clipboard, as they've been around for quite a while, but as you can see, they're highly useful.

There's also one other situation that is rather interesting that you can potentially use to your advantage.  There are times when doing a simple copy or cut will do a "merge" of layers, allowing the contents of both layers to become identical, giving you more options for pasting or handling copied content.  This then allows you to paste binary files and other things you otherwise would not be able to copy with the second layer, using your mouse wheel.

There is also a very easy way in which you can expand the capacity and capabilities of your native clipboard even more should you so choose.  Some of these are Window Manager specific.  For KDE, that program would be Klipper, a beautiful, simple, yet highly powerful clipboard manager with the ability to store thousands of previous clipboard events for you to use anytime you so wish.  Glipper, Gnome's clipboard manager, is similar to KDE's Klipper, but not quite as fully featured.  Other window managers also have their own native clipboard manager, but not all do.  Therefore there are other stand alone, window manager independent clipboard managers you can use.

I hope this was a help to everyone exploring Linux.  And as usual, if you have any questions, please feel free to ask them in the forums.
Discuss this!  ( 1 comments )

Raiden's Realm Social Bookmarking
If you have any problems with any of these links, please let us know.  Thanks.

Digg it! Slashdot It! Del.icio.us Add to StumbleUpon Add to Technorati Reddit! Add to Google Bookmarks Add to FaceBook Share Add to Twitter

Average vistor rating: 4.8 out of 5 (5 total votes)

Community Image Gallery

More Images
Submit new images to gallery

Raiden's Writings

Raiden's Writings has moved!

The new location is:
www.realmsofimagination.net

Please update your bookmarks with the new address. Thanks.

Announcements

The 2010 Realm Funding Drive is underway!

Please consider donating to help us out.  I know it's a tough year, but our needs are small and the money goes towards covering our webhosting for another year. Thanks in advance for your generosity.

$120 of $500 raised!

What is your favorite open source cellphone IOS?

Symbian
Android
Maemo
Other

More Polls
Latest Releases
(courtesy of Distrowatch)

1. Privatix 10.02.07
Released: 02/08
2. Frugalware 1.2-rc1
Released: 02/08
3. Tiny Core 2.9-rc2
Released: 02/08
4. Parsix 3.0r2
Released: 02/07
5. Mandriva 2010.1-alpha2...
Released: 02/07
6. Absolute 13.0.9
Released: 02/07

More
All original content on this site is copyright of Raiden's Realm via the Creative Commons license. All rights reserved.

Any non original content is the sole property of the respective owners.