Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define NUMCOLORS 13
- #define MODKEY Mod1Mask
- #define MONKEY Mod4Mask
- #define TAGKEYS(KEY,TAG) \
- { MODKEY, KEY, view, {.ui = 1 << TAG} }, \
- { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
- { MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \
- { MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} },
- static const unsigned int tagspacing = 3; /* space between tags */
- static const unsigned int tagpadding = 25; /* inner padding of tags */
- static const unsigned int taglinepx = 2; /* height of tag underline */
- static const unsigned int systrayspacing = 2; /* systray spacing */
- static const Bool showsystray = True; /* false means no systray */
- static const unsigned int gappx = 10; /* gaps between windows */
- static const unsigned int borderpx = 3; /* border pixel of windows */
- static const unsigned int snap = 32; /* snap pixel */
- static const Bool showbar = True; /* false means no bar */
- static const Bool topbar = True; /* false means bottom bar */
- static const float mfact = 0.50; /* factor of master area size [0.05..0.95] */
- static const int nmaster = 1; /* number of clients in master area */
- static const Bool resizehints = False; /* true means respect size hints in tiled resizals */
- //static const char font[] = "-*-ohsnap.icons-medium-r-*-*-14-*-*-*-*-*-*-*";
- //added the next line in the original edition has an "-" before static...
- //static const char font[] = "-*-terminus-medium-r-normal-*-14-*-*-*-*-*-*-*";
- static const char font[] = "-dec-*-*-*-*-*-*-*-100-100-*-*-*-*";
- //+static const char font[] = "-misc-fixed-medium-r-semicondensed--13-100-100-100-c-60-iso8859-1";
- //static const char normbordercolor[] = "#cccccc";
- //static const char normbgcolor[] = "#cccccc";
- //static const char normfgcolor[] = "#000000";
- static const char selbgcolor[] = "#177245";
- static const char colors[NUMCOLORS][ColLast][13] = {
- /* border fg bg */
- { "#ffc703", "#FFFFFF", "#2D2D2D" }, /* 01 - regular */
- { "#D64937", "#FFFFFF", "#000000" }, /* 02 - selected */
- { "#2D2D2D", "#FF0000", "#2D2D2D" }, /* 03 - urgent */
- { "#2D2D2D", "#666666", "#2D2D2D" }, /* 04 - occupied */
- { "#2D2D2D", "#A82222", "#2D2D2D" }, /* 05 - red */
- { "#2D2D2D", "#1F7B94", "#2D2D2D" }, /* 06 - blue */
- { "#2D2D2D", "#349147", "#2D2D2D" }, /* 07 - green */
- { "#2D2D2D", "#666666", "#2D2D2D" }, /* 08 - dark grey */
- { "#2D2D2D", "#DCDCDC", "#2D2D2D" }, /* 09 - light grey */
- { "#D64937", "#D64937", "#D64937" }, /* 0A - orange */
- { "#2D2D2D", "#B86A6A", "#2D2D2D" }, /* 0B - pink */
- { "#2D2D2D", "#FFFFFF", "#2D2D2D" }, /* 0C - white */
- { "#2D2D2D", "#000000", "#2D2D2D" }, /* 0D - black */
- };
- static const Layout layouts[] = {
- /* symbol gaps arrange */
- { "þ", True, tile },
- { "ü", True, bstack },
- { "ÿ", False, monocle },
- { "ý", False, NULL },
- };
- static const Tag tags[] = {
- /* name layout mfact nmaster */
- { "term", &layouts[0], -1, -1 },
- { "code", &layouts[0], -1, -1 },
- { "web", &layouts[3], -1, -1 },
- { "chat", &layouts[0], -1, -1 },
- { "media", &layouts[0], -1, -1 },
- { "misc", &layouts[0], -1, -1 },
- };
- static const Rule rules[] = {
- /* class instance title tags mask isfloating iscentred monitor */
- { "Google-chrome", NULL, NULL, 1 << 3, False, False, -1 },
- { "Skype", NULL, NULL, 1 << 5, False, False, -1 },
- { "URxvt", NULL, NULL, 1 << 1, True, True, -1 },
- { "Geany", NULL, NULL, 1 << 1, False, False, -1 },
- { "Vlc", NULL, NULL, 1 << 4, False, False, -1 },
- { "Pcmanfm", NULL, NULL, 1 << 5, False, False, -1 },
- { "Transmission-gtk", NULL, NULL, 1 << 5, False, False, -1 },
- };
- static const char *menu[] = { "dmenu_run", "-i", "-fn", font, "-nb", colors[0][ColBG], "-nf", colors[0][ColFG], "-sb", colors[1][ColBG], "-sf", colors[9][ColFG], NULL };
- static const char *webb[] = { "google-chrome", NULL, "Google-chrome" };
- static const char *chat[] = { "skype", NULL, "Skype" };
- static const char *term[] = { "urxvtc", NULL, "URxvt" };
- static const char *edit[] = { "geany", NULL, "Geany" };
- static const char *mdia[] = { "vlc", NULL, "Vlc" };
- static const char *file[] = { "pcmanfm", NULL, "Pcmanfm" };
- static const char *prts[] = { "scrot", NULL };
- static const char *play[] = { "ncmpcpp", "toggle" };
- static const char *stop[] = { "ncmpcpp", "stop" };
- static const char *prev[] = { "ncmpcpp", "prev" };
- static const char *next[] = { "ncmpcpp", "next" };
- static const char *mute[] = { "amixer", "-q", "set", "PCM", "toggle", NULL };
- static const char *volu[] = { "amixer", "-q", "set", "PCM", "5%+", "unmute", NULL };
- static const char *vold[] = { "amixer", "-q", "set", "PCM", "5%-", "unmute", NULL };
- static Key keys[] = {
- { MONKEY, XK_p, spawn, {.v = menu } },
- { MONKEY, XK_w, runorraise, {.v = webb } },
- { MONKEY, XK_s, runorraise, {.v = chat } },
- { MONKEY, XK_Return, runorraise, {.v = term } },
- { MONKEY, XK_e, runorraise, {.v = edit } },
- { MONKEY, XK_m, runorraise, {.v = mdia } },
- { MONKEY, XK_f, runorraise, {.v = file } },
- { MONKEY, XK_Print, spawn, {.v = prts } },
- { MONKEY, XK_F5, spawn, {.v = play } },
- { MONKEY, XK_F6, spawn, {.v = stop } },
- { MONKEY, XK_F7, spawn, {.v = prev } },
- { MONKEY, XK_F8, spawn, {.v = next } },
- { MONKEY, XK_F10, spawn, {.v = mute } },
- { MONKEY, XK_F11, spawn, {.v = vold } },
- { MONKEY, XK_F12, spawn, {.v = volu } },
- { MODKEY|ShiftMask, XK_q, quit, {0} },
- { MODKEY|ShiftMask, XK_b, togglebar, {0} },
- { MODKEY|ShiftMask, XK_c, killclient, {0} },
- { MODKEY, XK_Return, zoom, {0} },
- { MODKEY, XK_Tab, view, {0} },
- { MODKEY|ShiftMask, XK_f, togglefloating, {0} },
- { MODKEY, XK_space, setlayout, {0} },
- { MODKEY, XK_t, setlayout, {.v = &layouts[0] } },
- { MODKEY, XK_b, setlayout, {.v = &layouts[1] } },
- { MODKEY, XK_m, setlayout, {.v = &layouts[2] } },
- { MODKEY, XK_f, setlayout, {.v = &layouts[3] } },
- { MODKEY, XK_Right, focusstack, {.i = +1 } },
- { MODKEY, XK_Left, focusstack, {.i = -1 } },
- { MODKEY, XK_h, setmfact, {.f = -0.05 } },
- { MODKEY, XK_l, setmfact, {.f = +0.05 } },
- { MODKEY, XK_equal, incnmaster, {.i = +1 } },
- { MODKEY, XK_minus, incnmaster, {.i = -1 } },
- { MODKEY, XK_Down, focusstack, {.i = +1 } },
- { MODKEY, XK_Up, focusstack, {.i = -1 } },
- { MODKEY, XK_0, view, {.ui = ~0 } },
- { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
- { MODKEY, XK_comma, focusmon, {.i = -1 } },
- { MODKEY, XK_period, focusmon, {.i = +1 } },
- { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
- { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
- TAGKEYS( XK_1, 0)
- TAGKEYS( XK_2, 1)
- TAGKEYS( XK_3, 2)
- TAGKEYS( XK_4, 3)
- TAGKEYS( XK_5, 4)
- TAGKEYS( XK_6, 5)
- };
- static Button buttons[] = {
- { ClkLtSymbol, 0, Button1, setlayout, {0} },
- { ClkClientWin, MODKEY, Button1, movemouse, {0} },
- { ClkClientWin, MODKEY, Button2, togglefloating, {0} },
- { ClkClientWin, MODKEY, Button3, resizemouse, {0} },
- { ClkTagBar, 0, Button1, view, {0} },
- { ClkTagBar, 0, Button3, toggleview, {0} },
- { ClkTagBar, MODKEY, Button1, tag, {0} },
- { ClkTagBar, MODKEY, Button3, toggletag, {0} },
- };
Advertisement
Add Comment
Please, Sign In to add comment