X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=config.def.h;h=9714129cbecfed6ec635651bad816331c7fa8c1e;hb=0e98090d653457488d74103dc44a1e2aba071895;hp=b2f75dc4691fdea77dc05a015dedee1eefd45ba9;hpb=c3eca4d14fb5e607d16166e2ecbf8bcb980421d5;p=dwm.git diff --git a/config.def.h b/config.def.h index b2f75dc..9714129 100644 --- a/config.def.h +++ b/config.def.h @@ -11,8 +11,13 @@ #define SELBGCOLOR "#0066ff" #define SELFGCOLOR "#ffffff" +/* convenience */ +#define LENGTH(x) (sizeof x / sizeof x[0]) + /* tagging */ -const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "www", NULL }; +const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "www" }; +Bool seltags[LENGTH(tags)] = {[0] = True}; +Bool prevtags[LENGTH(tags)] = {[0] = True}; Rule rules[] = { /* class:instance:title regex tags regex isfloating */ { "Firefox", "www", False }, @@ -22,7 +27,6 @@ Rule rules[] = { }; /* layout(s) */ -#define ISTILE isarrange(tile) /* || isarrange() */ #define MWFACT 0.6 /* master width factor [0.1 .. 0.9] */ #define RESIZEHINTS True /* False - respect size hints in tiled resizals */ #define SNAP 32 /* snap pixel */ @@ -40,7 +44,7 @@ Key keys[] = { \ { MODKEY, XK_p, spawn, \ "exe=`dmenu_path | dmenu -fn '"FONT"' -nb '"NORMBGCOLOR"' -nf '"NORMFGCOLOR"'" \ " -sb '"SELBGCOLOR"' -sf '"SELFGCOLOR"'` && exec $exe" }, \ - { MODKEY|ShiftMask, XK_Return, spawn, "exec xterm" }, \ + { MODKEY|ShiftMask, XK_Return, spawn, "exec uxterm" }, \ { MODKEY, XK_space, setlayout, NULL }, \ { MODKEY, XK_b, togglebar, NULL }, \ { MODKEY, XK_j, focusnext, NULL }, \ @@ -49,6 +53,7 @@ Key keys[] = { \ { MODKEY, XK_l, setmwfact, "+0.05" }, \ { MODKEY, XK_m, togglemax, NULL }, \ { MODKEY, XK_Return, zoom, NULL }, \ + { MODKEY, XK_Tab, viewprevtag, NULL }, \ { MODKEY|ShiftMask, XK_space, togglefloating, NULL }, \ { MODKEY|ShiftMask, XK_c, killclient, NULL }, \ { MODKEY, XK_0, view, NULL }, \