clipme - clipmed command line client
clipme [-s /path/to/socket.sock] [-f /path/to/clipmerc] [command [args]]
A c client for managing clipboard selection history. clipme connect to clipmed socket, send the command and print the result in stdout.
-h display a short help text
-s specify an alternate socket (default is /var/tmp/$USER.cmsock)
-f specify an alternate config file (default is ~/.clipmerc or ~/.config/clipmerc)
if a command is given clipme send the command to clipmed socket and print the result in stdin
Command should be one of :
get [arg] where arg is an integer. Return the "arg" entry from the selection history. If arg is not given return all entries. First entry is 0.
siz return the number of items store in selection history.
del clear selection history.
set arg push the srting "arg" in selection history
twt arg post item number "arg" on twitter. twt need user and pass to be set as daemon options. This feature is just a devloppement sample for a future plugin architecture. It should change.
If no command is provide clipme wait for one in stdin
Get all items from a daemon listening on /home/me/.me.sock
clipme -s /home/me/.me.sock get
On an alternate way
echo get | clipme -s /home/me/.me.sock
Clear the history an use /home/me/.clipme.conf as a config file
clipme -f /home/me/.clipme.conf del
clipme returns zero on succed and a non zero value on failure. Most common error messages are "Protocol error" if an incorrect command is given and "Out of range clip" if a clip > siz is asked.
Joris Dedieu <[email protected]>
clipmed(1), clipmerc(5), xclip(1), xsel(1)