Commit Diff


commit - 741a2dfcb3452fdaa57addba2e5d3261f5087b54
commit + 945d94e4ec5339362d42fd646b14862627d6fb0b
blob - f7389fec699f241bcdd711ef1a1d19af9936d62f
blob + dd018c056160fb0385a4b4ef5ae417619262c617
--- config.h
+++ config.h
@@ -62,6 +62,7 @@ static const Layout layouts[] = {
 static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
 static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_black, "-sf", col_gray4, NULL };
 static const char *termcmd[]  = { "st", NULL };
+static const char *maim[] = { "/bin/sh", "-c", "maim -s | xclip -selection clipboard -t image/png", NULL };
 
 static const Key keys[] = {
 	/* modifier                     key        function        argument */
@@ -98,6 +99,7 @@ static const Key keys[] = {
 	TAGKEYS(                        XK_8,                      7)
 	TAGKEYS(                        XK_9,                      8)
 	{ MODKEY|ShiftMask,             XK_q,      quit,           {0} },
+	{ 0,                            XK_Print,  spawn,          {.v = maim } },
 };
 
 /* button definitions */