Skip to content

rmdir/xclip-daemon

Repository files navigation

INSTALLATION :

You need xorg headers files
Get the sources
git clone git://github.com/rmdir/xclip-daemon.git
cd xclip-daemon
make and copy clipme and clipmed file wherever you want 

USAGE :

clipmed -s /home/joris/clip.sock -n 2000 -d

Then you can use the get command to get
the selections and the del command to clear 
the selection stack.

$ echo "5:get 1,"|nc -U /path/to/socket.sock
11:xclip-daemo,

$ echo "3:del,"|nc -U /home/joris/clip.sock

you can use the client

$ echo "get 1"| clipme 
xclip-daemo

$ clipme set J\'aime le son du cor le soir au fond des bois.


LICENCE
This software is under beerware licence.
The files xcdef.h xclib.c xclib.h and xcprint.h
are under GPL please look at
http://www.gnu.org/licenses/gpl.html 

CREDITS :
Many files cames from xclip http://xclip.sourceforge.net

Have a look at this blog for XFixes usage
http://wahjava.wordpress.com/2006/08/

Have a look at polymorf site 
http://www.polymorf.fr/

PROTOCOL :
daemon retruns netstrings (ex 11:xclip-daemo,) 
see http://en.wikipedia.org/wiki/Netstrings

Actuals commands are :

get [n] -> get the item number n (all if n is not specified)
del -> clears the buffer
siz -> returns the number of stored items
set item -> add item to current stack
twt n -> post n item on twitter (must be compiled with -DWITH_TWITTER)

 



About

A tool for building klipper like clipboards for liteweight window managers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published