X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=config.arg.h;h=11e7eee341dacecaedf91793a9aba540b6bd8192;hb=52f0b9e2e3e7eba1e7d2b940863d9a72fa8112d6;hp=fae30d0ad059c9c4ae5601a46aa4da034347d620;hpb=5cc27f1b3c61df4f048cdac9e0feb31a2dd80c63;p=dwm.git diff --git a/config.arg.h b/config.arg.h index fae30d0..11e7eee 100644 --- a/config.arg.h +++ b/config.arg.h @@ -2,13 +2,7 @@ * See LICENSE file for license details. */ -#define TAGS \ -const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9", NULL }; - -#define DEFMODE dotile /* dofloat */ -#define FLOATSYMBOL "><>" -#define TILESYMBOL "[]=" - +/* appearance */ #define BORDERPX 1 #define FONT "-*-terminus-medium-r-*-*-14-*-*-*-*-*-*-*" #define NORMBORDERCOLOR "#333" @@ -17,13 +11,33 @@ const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9", NULL }; #define SELBORDERCOLOR "#69c" #define SELBGCOLOR "#555" #define SELFGCOLOR "#fff" +#define TOPBAR True /* False */ +/* behavior */ +#define SNAP 40 /* pixel */ +#define TAGS \ +const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9", NULL }; +#define RULES \ +static Rule rule[] = { \ + /* class:instance:title regex tags regex isversatile */ \ + { "Firefox", "3", False }, \ + { "Gimp", NULL, True }, \ + { "MPlayer", NULL, True }, \ + { "Acroread", NULL, True }, \ +}; + +/* layout(s) */ +#define LAYOUTS \ +static Layout layout[] = { \ + /* symbol function */ \ + { "[]=", tile }, /* first entry is default */ \ + { "><>", versatile }, \ +}; #define MASTER 600 /* per thousand */ -#define MODKEY Mod1Mask #define NMASTER 1 /* clients in master area */ -#define SNAP 40 /* pixel */ -#define TOPBAR True /* False */ +/* key definitions */ +#define MODKEY Mod1Mask #define KEYS \ static Key key[] = { \ /* modifier key function argument */ \ @@ -60,8 +74,8 @@ static Key key[] = { \ { MODKEY|ControlMask|ShiftMask, XK_8, toggletag, { .i = 7 } }, \ { MODKEY|ControlMask|ShiftMask, XK_9, toggletag, { .i = 8 } }, \ { MODKEY|ShiftMask, XK_c, killclient, { 0 } }, \ - { MODKEY, XK_space, togglemode, { 0 } }, \ - { MODKEY|ShiftMask, XK_space, togglefloat, { 0 } }, \ + { MODKEY, XK_space, setlayout, { .i = -1 } }, \ + { MODKEY|ShiftMask, XK_space, toggleversatile,{ 0 } }, \ { MODKEY, XK_0, view, { .i = -1 } }, \ { MODKEY, XK_1, view, { .i = 0 } }, \ { MODKEY, XK_2, view, { .i = 1 } }, \ @@ -83,12 +97,3 @@ static Key key[] = { \ { MODKEY|ControlMask, XK_9, toggleview, { .i = 8 } }, \ { MODKEY|ShiftMask, XK_q, quit, { 0 } }, \ }; - -#define RULES \ -static Rule rule[] = { \ - /* class:instance:title regex tags regex isfloat */ \ - { "Firefox", "3", False }, \ - { "Gimp", NULL, True }, \ - { "MPlayer", NULL, True }, \ - { "Acroread", NULL, True }, \ -};