Skip to content

lightweight clipboard manager for X (unmaintained for now)

License

Notifications You must be signed in to change notification settings

dindon-sournois/xcmenu

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lightweight clipboard manager for X

By default it keeps history of your XA_CLIPBOARD,
and keeps XA_PRIMARY on sync with it.

History is saved in $XDG_USER_DATA/xcmenu or $HOME/.local/share/xcmenu
By default it uses zlib compression.

Change settings in config.h
Also comes with bash script for dmenu access.

xcmenuctrl can read dmenu settings from $HOME/.dmenurc
with the variable XCMENUCTRL_DMENU, for example:
XCMENUCTRL_DMENU='dmenu -i -l 15'

By default, xcmenu uses CLEAR_SELECTIONS bitflag for,
XA_CLIPBOARD to increase compatibility with applications.

Without this flag however, you can have some extra flexibility
related to selection targets.

MISC:
   You can set clipboard data similar to xsel/xclip
   echo "asd" | xcmenu -pi # copy to primary
   echo "asd" | xcmenu -ci # copy to clipboard
   xcmenu -p               # output selection from primary
   xcmenu -c               # output selection from clipboard

   Special selections are supported as well
   xcmenu -b image/png > image.png  # get image from gimp
   xcmenu -bi image/png < image.png # upload image to image/png

Those commands will leave xcmenu process open until someone else takes ownership of the particular selection (ex. XA_CLIPBOARD).

TODO:
   Remove clip by index from history from CLI
   Dynamic specialclip buffers

About

lightweight clipboard manager for X (unmaintained for now)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 93.6%
  • Shell 3.3%
  • Makefile 2.2%
  • Python 0.9%