JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
made Xinerama screen index customizable
[dwm.git] / config.def.h
index 6a6f7be..1733681 100644 (file)
@@ -8,10 +8,14 @@
 #define SELBORDERCOLOR  "#0066ff"
 #define SELBGCOLOR      "#0066ff"
 #define SELFGCOLOR      "#ffffff"
-static uint borderpx  = 1;        /* border pixel of windows */
-static uint snap      = 32;       /* snap pixel */
-static Bool showbar   = True;     /* False means no bar */
-static Bool topbar    = True;     /* False means bottom bar */
+static uint borderpx    = 1;        /* border pixel of windows */
+static uint snap        = 32;       /* snap pixel */
+static Bool showbar     = True;     /* False means no bar */
+static Bool topbar      = True;     /* False means bottom bar */
+
+#ifdef XINERAMA
+static uint xidx        = 0;        /* Xinerama screen index to use */
+#endif
 
 /* tagging */
 static const char tags[][MAXTAGLEN] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
@@ -40,6 +44,9 @@ static Layout layouts[] = {
         { MODKEY|ShiftMask,             KEY,      tag,            TAG }, \
         { MODKEY|ControlMask|ShiftMask, KEY,      toggletag,      TAG },
 
+/* helper for spawning shell commands */
+#define SHCMD(cmd) { .v = (char*[]){ "/bin/sh", "-c", cmd, NULL } }
+
 static Key keys[] = {
        /* modifier                     key        function        argument */
        { MODKEY,                       XK_p,      spawn,          {.v = (char *[]){"dmenu_run", "-fn", FONT, "-nb", NORMBGCOLOR, "-nf", NORMFGCOLOR, "-sb", SELBGCOLOR, "-sf", SELFGCOLOR, NULL}} },