forked from micaelbergeron/xcmenu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
37 lines (27 loc) · 1.28 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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