2009年9月16日水曜日

xclexeのリリース

I made the program for clipboard extension of Linux

everything xclexe can do is just keep watching the clipboard , and throw it to specific application by the rule.
Don't worry about you are no idea of the rule. Just execute it, and then you will get the sample under the $HOME/.xclexe

[global]
#x=50
#y=50
#width=840
#height=70
#border_width=2

[exec]
#PATH=/usr/bin/ed2k
#KEYWORD=ed2k:
#FLAG=1

There are 2 section in rule file, The first one is [global], you can define the windows size and position at here.
And second one is [exec], you can define the specific application rule at here. if you have one more rule just need to append a new [exec] section.

For example.
[exec]
PATH=/usr/bin/ed2k
KEYWORD=ed2k:
FLAG=1

PATH means specific application path.
KEYWORD means the keyword of clipboard content.
FLAG means searching rule, 1 means check the content head, 2 means check the content end, 0 - means search the keyword.

The sample means keep check the clipboard content, if the content begin with "edk2:" string,
Then clipboard content would be the first parameter execute by the /usr/bin/ed2k.
Translate to the comand line is:
/usr/bin/ed2k

BTW, # means comment out.

enjoy it!

you can download the sources from the URL
http://file7.brsbox.com/download.php?sid=cd48f0bb55ece2d19cb4329a866bfbab&fc=e63d5a4a126d0ad675631a5688bdf375/xclexe.tar.gz