/* See LICENSE file for copyright and license details. */ /* appearance */ #define NUMCOLORS 7 // need at least 3 static const char colors[NUMCOLORS][ColLast][8] = { // border foreground background //{ "#212121", "#E2E2E2", "#222222" }, // 0 = normal //{ "#696969", "#D8DE1A", "#222222" }, // 1 = selected //{ "#212121", "#5E0F8B", "#222222" }, // 2 = label time //{ "#212121", "#B4BA22", "#222222" }, // 3 = label stat color //{ "#212121", "#C6C6C6", "#222222" }, // 4 = yellow //{ "#212121", "#47959E", "#121212" }, // 5 = cyan //{ "#212121", "#7E62B3", "#121212" }, // 6 = magenta //{ "#212121", "#C0C0C0", "#121212" }, // 7 = white //{ "#212121", "#E5E7E1", "#5C604D" }, // 0 = normal //{ "#696969", "#5C604D", "#C8CFB4" }, // 1 = selected //{ "#212121", "#FFBAD2", "#5C604D" }, // 2 = label pink //{ "#212121", "#5C604D", "#5C604D" }, // 3 = label stat color //{ "#212121", "#F69221", "#121212" }, // 4 = yellow //{ "#212121", "#47959E", "#121212" }, // 5 = cyan //{ "#212121", "#7E62B3", "#121212" }, // 6 = magenta //{ "#212121", "#C0C0C0", "#121212" }, // 7 = white // ZENBURN { "#525252", "#93B3A3", "#3f3f3f" }, // 0 = normal // { "#666666", "#F0DFAF", "#575757" }, // 1 = selected // { "#dcdccc", "#93B3A3", "#333333" }, // 2 = taskbarbg // { "#dcdccc", "#80BFC2", "#333333" }, // 3 = error // { "#dcdccc", "#DFAF8F", "#333333" }, // 4 = clock // { "#dcdccc", "#DCA3A3", "#333333" }, // 5 = tasks // { "#dcdccc", "#B8E38D", "#333333" }, // 6 = mail // { "#dcdccc", "#E6E8B9", "#333333" }, // 7 = ram // // // // // // SPECTRUM COLOR SCHEME // // // / // / // // / // { "#525252", "#999999", "#3D3D3D" }, // 0 = normal // { "#666666", "#B0FFBD", "#3D3D3D" }, // 1 = selected // { "#dcdccc", "#92B592", "#3D3D3D" }, // 2 = taskbarbg // { "#dcdccc", "#D2A162", "#3D3D3D" }, // 3 = error // { "#dcdccc", "#FCE591", "#3D3D3D" }, // 4 = clock // { "#dcdccc", "#D2626B", "#3D3D3D" }, // 4 = clock // { "#dcdccc", "#C6FFB0", "#3D3D3D" }, // 4 = clock //////////////////////////////////////////////////////////////// { "#525252", "#84939D", "#3B454B" }, // 0 = bar color { "#666666", "#84939D", "#2F3538" }, // 1 = bar text selected { "#dcdccc", "#2F3538", "#3B454B" }, // 2 = bar text selected bg { "#dcdccc", "#84939D", "#3B454B" }, // 3 = bar text unselected { "#dcdccc", "#B49D95", "#2F3538" }, // 4 = timex notification { "#dcdccc", "#E66B42", "#2F3538" }, // 5 = hard notification { "#dcdccc", "#B49D95", "#3B454B" }, // 6 = song // { "#dcdccc", "#C6FFB0", "#3D3D3D" }, // 4 = clock // { "#dcdccc", "#DCA3A3", "##89876F" }, // 5 = tasks // { "#dcdccc", "#B8E38D", "#89876F" }, // 6 = mail // { "#dcdccc", "#E6E8B9", "#89876F" }, // 7 = ram // add more here }; static const char font[] = "-*-profont-*-*-*-*-9-*-*-*-*-*-*-*"; static const unsigned int borderpx = 1; /* 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 */ /* tagging */ static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; static const Rule rules[] = { /* class instance title tags mask isfloating monitor */ { "Gimp", NULL, NULL, 0, True, -1 }, { "Google-chrome", NULL, NULL, 1 << 2, False, -1 }, { "Chromium-browser", NULL, NULL, 1 << 5, False, -1}, { "Deadbeef", NULL, NULL, 1 << 1, False, -1 }, { "Firefox", NULL, NULL, 1 << 2, False, -1 }, { "Transmission", NULL, NULL, 1 << 8, False, -1}, { "Pcmanfm", NULL, NULL, 1 << 7, False, -1}, { "Smplayer", NULL, NULL, 0, False, -1}, { "feh", NULL, NULL, ~0, True, -1}, { "Conky", NULL, NULL, 0, True, -1}, { "Polly", NULL, NULL, 1 << 8, False, -1}, }; /* layout(s) */ static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */ static const Bool resizehints = True; /* True means respect size hints in tiled resizals */ static const Layout layouts[] = { /* symbol arrange function */ { "[t]", tile }, /* first entry is default */ { "[-]", NULL }, /* no layout function means floating behavior */ { "[m]", monocle }, }; /* key definitions */ #define MODKEY Mod1Mask #define TAGKEYS(KEY,TAG) \ { MODKEY, KEY, comboview, {.ui = 1 << TAG} }, \ { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \ { MODKEY|ShiftMask, KEY, combotag, {.ui = 1 << TAG} }, \ { MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} }, /* helper for spawning shell commands in the pre dwm-5.0 fashion */ #define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } } /* commands */ static const char *dmenucmd[] = { "/home/lazy/bin/dmanu", NULL }; static const char *termcmd[] = { "/home/lazy/bin/term", NULL }; static const char *calecmd[] = { "/home/lazy/bin/cale", NULL }; static const char *geditcmd[] = { "gvim", NULL }; static const char *deadbeefcmd[] = { "/home/lazy/deadbeef/deadbeef-0.5.1/deadbeef", NULL }; static const char *uzblcmd[] = { "uzbl-tabbed", NULL }; static const char *ggcmd[] = { "/home/lazy/Desktop/firefox/firefox", NULL }; static const char *firefoxcmd[] = { "firefox", NULL }; static const char *smplayercmd[] = { "smplayer", NULL }; static const char *fmgercmd[] = { "pcmanfm", NULL }; static const char *shortcutscmd[] = { "/home/lazy/bin/shortcut", NULL }; static const char *lockcmd[] = { "slock", NULL }; //static const char *dvolcmd[] = { "/home/lazy/bin/dvol", NULL }; static const char *playcmd[] = { "mpc", "toggle", NULL }; static const char *nextcmd[] = { "mpc", "next", NULL }; static const char *prevcmd[] = { "mpc", "prev", NULL }; static const char *volupmd[] = { "mpc", "volume", "+8", NULL }; static const char *voldomd[] = { "mpc", "volume", "-8", NULL }; static const char *mzkcmd[] = { "/home/lazy/bin/mzk", NULL }; static const char *skycmd[] = { "/home/lazy/bin/skyzen", NULL }; //static const char *voldocmd[] = { "amixer","-q", "set", "Master", "2dB-", NULL }; static Key keys[] = { /* modifier key function argument */ { MODKEY, XK_w, spawn, {.v = skycmd } }, { MODKEY, XK_F11, spawn, {.v = calecmd } }, { MODKEY|ShiftMask, XK_Up, spawn, {.v = volupmd } }, { MODKEY|ShiftMask, XK_Down, spawn, {.v = voldomd } }, { MODKEY, XK_Down, spawn, {.v = playcmd } }, { MODKEY, XK_Left, spawn, {.v = prevcmd } }, { MODKEY, XK_Right, spawn, {.v = nextcmd } }, { MODKEY, XK_Pause, spawn, {.v = lockcmd } }, { MODKEY, XK_F12, spawn, {.v = shortcutscmd } }, { MODKEY|ShiftMask, XK_d, spawn, {.v = fmgercmd } }, {MODKEY, XK_s, spawn, {.v = smplayercmd } }, {MODKEY, XK_c, spawn, {.v = firefoxcmd } }, { MODKEY, XK_z, spawn, {.v = ggcmd } }, { MODKEY, XK_u, spawn, {.v = uzblcmd } }, { MODKEY, XK_Escape, spawn, {.v = dmenucmd } }, { MODKEY, XK_q, spawn, {.v = termcmd } }, { MODKEY, XK_g, spawn, {.v = geditcmd } }, { MODKEY, XK_x, spawn, {.v = mzkcmd } }, { MODKEY, XK_b, togglebar, {0} }, { MODKEY, XK_j, focusstack, {.i = +1 } }, { MODKEY, XK_k, focusstack, {.i = -1 } }, { MODKEY, XK_h, setmfact, {.f = -0.05} }, { MODKEY, XK_l, setmfact, {.f = +0.05} }, { MODKEY, XK_Return, zoom, {0} }, { MODKEY, XK_Tab, view, {0} }, { MODKEY, XK_F4, killclient, {0} }, { MODKEY, XK_t, setlayout, {.v = &layouts[0]} }, { MODKEY, XK_f, setlayout, {.v = &layouts[1]} }, { MODKEY, XK_m, setlayout, {.v = &layouts[2]} }, { MODKEY, XK_space, setlayout, {0} }, { MODKEY|ShiftMask, XK_space, togglefloating, {0} }, { 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) TAGKEYS( XK_7, 6) TAGKEYS( XK_8, 7) TAGKEYS( XK_9, 8) { MODKEY|ShiftMask, XK_q, quit, {0} }, }; /* button definitions */ /* click can be ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */ static Button buttons[] = { /* click event mask button function argument */ { ClkLtSymbol, 0, Button1, setlayout, {0} }, { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} }, { ClkWinTitle, 0, Button2, zoom, {0} }, { ClkStatusText, 0, Button1, spawn, {.v = calecmd } }, { 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} }, };