JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
new resize stuff (using XConfigureWindow instead of XSendEvent)
[dwm.git] / config.arg.h
1 /*
2  * (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
3  * See LICENSE file for license details.
4  */
5
6 enum { Tfnord, Tdev, Tnet, Twork, Tmisc, TLast };
7 #define DEFMODE                 dotile /* dofloat */
8 #define DEFTAG                  Tdev
9 #define FONT                    "-*-terminus-medium-*-*-*-13-*-*-*-*-*-iso10646-*"
10 #define BGCOLOR                 "#0a2c2d"
11 #define FGCOLOR                 "#ddeeee"
12 #define BORDERCOLOR             "#176164"
13 #define MODKEY                  Mod1Mask
14 #define NUMLOCKMASK             Mod2Mask
15 #define MASTERW                 52 /* percent */
16
17 #define TAGS \
18 char *tags[TLast] = { \
19         [Tfnord] = "fnord", \
20         [Tdev] = "dev", \
21         [Tnet] = "net", \
22         [Twork] = "work", \
23         [Tmisc] = "misc", \
24 };
25
26 #define KEYS \
27         const char *browse[] = { "firefox", NULL }; \
28         const char *gimp[] = { "gimp", NULL }; \
29         const char *term[] = { \
30                 "urxvt", "-tr", "+sb", "-bg", "black", "-fg", "white", "-cr", "white", \
31                 "-fn", "-*-terminus-medium-*-*-*-13-*-*-*-*-*-iso10646-*", NULL \
32         }; \
33         const char *xlock[] = { "xlock", NULL }; \
34 static Key key[] = { \
35         /* modifier             key             function        arguments */ \
36         { MODKEY,               XK_0,           view,           { .i = Tfnord } }, \
37         { MODKEY,               XK_1,           view,           { .i = Tdev } }, \
38         { MODKEY,               XK_2,           view,           { .i = Tnet } }, \
39         { MODKEY,               XK_3,           view,           { .i = Twork } }, \
40         { MODKEY,               XK_4,           view,           { .i = Tmisc} }, \
41         { MODKEY,               XK_h,           viewprev,       { 0 } }, \
42         { MODKEY,               XK_j,           focusnext,      { 0 } }, \
43         { MODKEY,               XK_k,           focusprev,      { 0 } }, \
44         { MODKEY,               XK_l,           viewnext,       { 0 } }, \
45         { MODKEY,               XK_m,           togglemax,      { 0 } }, \
46         { MODKEY,               XK_space,       togglemode,     { 0 } }, \
47         { MODKEY,               XK_Return,      zoom,           { 0 } }, \
48         { MODKEY|ControlMask,   XK_0,           appendtag,      { .i = Tfnord } }, \
49         { MODKEY|ControlMask,   XK_1,           appendtag,      { .i = Tdev } }, \
50         { MODKEY|ControlMask,   XK_2,           appendtag,      { .i = Tnet } }, \
51         { MODKEY|ControlMask,   XK_3,           appendtag,      { .i = Twork } }, \
52         { MODKEY|ControlMask,   XK_4,           appendtag,      { .i = Tmisc } }, \
53         { MODKEY|ShiftMask,     XK_0,           replacetag,     { .i = Tfnord } }, \
54         { MODKEY|ShiftMask,     XK_1,           replacetag,     { .i = Tdev } }, \
55         { MODKEY|ShiftMask,     XK_2,           replacetag,     { .i = Tnet } }, \
56         { MODKEY|ShiftMask,     XK_3,           replacetag,     { .i = Twork } }, \
57         { MODKEY|ShiftMask,     XK_4,           replacetag,     { .i = Tmisc } }, \
58         { MODKEY|ShiftMask,     XK_c,           killclient,     { 0 } }, \
59         { MODKEY|ShiftMask,     XK_q,           quit,           { 0 } }, \
60         { MODKEY|ShiftMask,     XK_Return,      spawn,          { .argv = term } }, \
61         { MODKEY|ShiftMask,     XK_g,           spawn,          { .argv = gimp } }, \
62         { MODKEY|ShiftMask,     XK_l,           spawn,          { .argv = xlock } }, \
63         { MODKEY|ShiftMask,     XK_w,           spawn,          { .argv = browse } }, \
64 };
65
66 #define RULES \
67 static Rule rule[] = { \
68         /* class:instance       tags                            isfloat */ \
69         { "Firefox.*",          { [Tnet] = "net" },             False }, \
70         { "Gimp.*",             { 0 },                          True}, \
71 };