1. Paul Barbu - Gheorghe
  2. dwm-patches

Source

dwm-patches / print

# HG changeset patch
# Parent b7dc91ba280a9b184a08611aecc24d56896a11cf
No more hex represenatation of the PrintScr key

diff -r b7dc91ba280a config.def.h
--- a/config.def.h	Sat Nov 17 10:50:04 2012 +0200
+++ b/config.def.h	Sat Nov 17 11:22:44 2012 +0200
@@ -70,9 +70,11 @@
 static const char *dmenucmd[] = { "dmenu_run", "-fn", font, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL };
 static const char *termcmd[]  = { "urxvt", NULL };
 static const char *filemancmd[]  = { "thunar", NULL };
+static const char *printcmd[]  = { "scrot", NULL };
 
 static Key keys[] = {
 	/* modifier                     key        function        argument */
+    { 0,                            XK_Print,  spawn,          {.v = printcmd } },
 	{ MODKEY,                       XK_r,      spawn,          {.v = dmenucmd } },
 	{ MODKEY,                       XK_e,      spawn,          {.v = filemancmd } },
 	{ MODKEY,                       XK_Return, spawn,          {.v = termcmd } },