xsel

Pronounced like one of the products of the other company, this little helper is neither about tables nor world domination. It's merely a handy tool that allows to call any command with the X-server's selection buffers as argument.

Why would I need such a thing?

Well... no idea. I, for one, use it as a way to quickly access the dict client, wikipedia or any other tool that might do something useful with the X-server's selection buffers.

How does it work?

Since xsel is in it's pre-alpha stage, there is no meaningful man page available yet. No worries, though, it's quite easy. Consider the following example:
xsel "mycommand {1}"
would run mycommand with the primary selection buffer as argument. likewise
xsel "anothercommand {2}"
would pass the secondary selection buffer.

That is supposed to be handy?

Admitted, not if you type the whole stuff everytime you need it. There is however this wonderful tool called "xbindkeys" that allows to map keys to arbitrary commands. Without further ado, my xbindkeyrc file comprises of the following (quite self explanatory) lines:

"xsel "xterm -e dict {1}" "
Control + Shift+ d

License

This program is distributed under the GNU GENERAL PUBLIC LICENSE, VERSION 2. If you don't know what that is look it up here

Download

Ahh... I just finished the coding. Please give me a break to package it nicely, so you can install it with less hassle. I hope it will be available early next month. Please come back then. If you really want this piece of code now, and you don't mind compiling it without any configure scripts or makefiles (which is actually quite simple with this quite short program) then don't hesitate to write me an email.

Any questions?

drop me a line at herr_ypsilon -at- users -dot- sourceforge -dot- net