123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- diff --git a/config.def.h b/config.def.h
- index 9efa774..f8e2282 100644
- --- a/config.def.h
- +++ b/config.def.h
- @@ -1,25 +1,27 @@
- /* See LICENSE file for copyright and license details. */
- +#include <X11/XF86keysym.h>
-
- /* appearance */
- -static const unsigned int borderpx = 1; /* border pixel of windows */
- +static const unsigned int borderpx = 3; /* border pixel of windows */
- static const unsigned int snap = 32; /* snap pixel */
- static const int showbar = 1; /* 0 means no bar */
- static const int topbar = 1; /* 0 means bottom bar */
- -static const char *fonts[] = { "monospace:size=10" };
- -static const char dmenufont[] = "monospace:size=10";
- +static const char *fonts[] = { "monospace:size=12" };
- +static const char dmenufont[] = "monospace:size=12";
- static const char col_gray1[] = "#222222";
- static const char col_gray2[] = "#444444";
- static const char col_gray3[] = "#bbbbbb";
- static const char col_gray4[] = "#eeeeee";
- -static const char col_cyan[] = "#005577";
- +static const char col_olive[] = "#556b2f";
- +static const char col_red[] = "#8b0000";
- static const char *colors[][3] = {
- /* fg bg border */
- [SchemeNorm] = { col_gray3, col_gray1, col_gray2 },
- - [SchemeSel] = { col_gray4, col_cyan, col_cyan },
- + [SchemeSel] = { col_gray4, col_olive, col_red },
- };
-
- /* tagging */
- -static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
- +static const char *tags[] = { "1", "2", "3", "4" };
-
- static const Rule rules[] = {
- /* xprop(1):
- @@ -45,7 +47,7 @@ static const Layout layouts[] = {
- };
-
- /* key definitions */
- -#define MODKEY Mod1Mask
- +#define MODKEY Mod4Mask
- #define TAGKEYS(KEY,TAG) \
- { MODKEY, KEY, view, {.ui = 1 << TAG} }, \
- { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
- @@ -57,14 +59,39 @@ static const Layout layouts[] = {
-
- /* commands */
- static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
- -static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
- -static const char *termcmd[] = { "st", NULL };
- +static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_olive, "-sf", col_gray4, NULL };
- +static const char *termcmd[] = { "/bin/sh", "/home/kev/bin/launch-uxterm", NULL };
- +static const char *lockcmd[] = { "xlock", "-mode", "star", "-trek", "1000", NULL };
- +/* this is my modified passmenu */
- +static const char *passmenucmd[] = { "passmenu", "--type", NULL };
- +static const char *usernamecmd[] = { "passmenu", "--type", "--username", NULL };
- +static const char *urlcmd[] = { "passmenu", "--type", "--url", NULL };
- +static const char *rotatecmd[2][4] = {
- + { "/bin/sh", "/home/kev/bin/rotate-screen", "right", NULL },
- + { "/bin/sh", "/home/kev/bin/rotate-screen", "inverted", NULL },
- +};
- +static const char *volumecmd[2][5] = {
- + { "/bin/sh", "/home/kev/bin/mixer-ctrl", "outputs.master", "increase", NULL },
- + { "/bin/sh", "/home/kev/bin/mixer-ctrl", "outputs.master", "decrease", NULL },
- +};
- +static const char *copycmd[] = { "/bin/sh", "/home/kev/bin/xci", NULL };
- +static const char *pastecmd[] = { "/bin/sh", "/home/kev/bin/xco", NULL };
-
- static const Key keys[] = {
- /* modifier key function argument */
- - { MODKEY, XK_p, spawn, {.v = dmenucmd } },
- + { 0, XF86XK_Eject, spawn, {.v = rotatecmd[0] } },
- + { 0, XF86XK_RotateWindows, spawn, {.v = rotatecmd[1] } },
- + { 0, XF86XK_AudioRaiseVolume, spawn, {.v = volumecmd[0] } },
- + { 0, XF86XK_AudioLowerVolume, spawn, {.v = volumecmd[1] } },
- + { MODKEY, XK_space, spawn, {.v = dmenucmd } },
- { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
- + { MODKEY|ShiftMask, XK_l, spawn, {.v = lockcmd } },
- + { MODKEY, XK_p, spawn, {.v = passmenucmd } },
- + { MODKEY|ShiftMask, XK_u, spawn, {.v = urlcmd } },
- + { MODKEY, XK_u, spawn, {.v = usernamecmd } },
- { MODKEY, XK_b, togglebar, {0} },
- + { MODKEY, XK_Tab, focusstack, {.i = +1 } },
- + { MODKEY|ShiftMask, XK_Tab, focusstack, {.i = -1 } },
- { MODKEY, XK_j, focusstack, {.i = +1 } },
- { MODKEY, XK_k, focusstack, {.i = -1 } },
- { MODKEY, XK_i, incnmaster, {.i = +1 } },
- @@ -72,12 +99,14 @@ static const Key keys[] = {
- { 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|ShiftMask, XK_c, killclient, {0} },
- + { MODKEY, XK_v, view, {0} },
- +// { MODKEY, XK_q, killclient, {0} },
- + { MODKEY|ShiftMask, XK_w, killclient, {0} },
- + { MODKEY, XK_w, spawn, {.v = copycmd } },
- + { MODKEY, XK_y, spawn, {.v = pastecmd } },
- { 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 } },
- @@ -113,4 +142,3 @@ static const Button buttons[] = {
- { ClkTagBar, MODKEY, Button1, tag, {0} },
- { ClkTagBar, MODKEY, Button3, toggletag, {0} },
- };
- -
|