dclip is a lightweight clipboard manager that uses dmenu as frontend to show the stored selections and depends on xclip. It tries to unify the mess with different X selections.
I recommend nibble’s fork of dmenu that fixes a problem showing big selections:
$ hg clone http://nibble.develsec.org/hg/dmenu_nibble/
You can easily adapt dclip to your system by creating keybinds to its ‘copy’ and ‘paste’ commands.
For example in dwm, in order to copy with M+C+c and paste with M+C+v you can add the following in your config.h:
/* commands */
static const char *dclipcmd[] = { "dclip", "paste", "-fn", font, "-nb", normbgcolor, "-nf", normfgcolor, "-s b", selbgcolor , "-sf", selfgcolor, NULL };
and in the keys[] section:
{ MODKEY|ControlMask, XK_c, spawn, SHCMD("exec dclip copy") },
{ MODKEY|ControlMask, XK_v, spawn, {.v = dclipcmd } },
Hope you will enjoy it.