|
|
@ -3,7 +3,7 @@ |
|
|
|
/* appearance */ |
|
|
|
/* appearance */ |
|
|
|
static const unsigned int borderpx = 1; /* border pixel of windows */ |
|
|
|
static const unsigned int borderpx = 1; /* border pixel of windows */ |
|
|
|
static const unsigned int snap = 32; /* snap pixel */ |
|
|
|
static const unsigned int snap = 32; /* snap pixel */ |
|
|
|
static const int showbar = 1; /* 0 means no bar */ |
|
|
|
static const int showbar = 0; /* 0 means no bar */ |
|
|
|
static const int topbar = 1; /* 0 means bottom bar */ |
|
|
|
static const int topbar = 1; /* 0 means bottom bar */ |
|
|
|
static const char *fonts[] = { "monospace:size=10" }; |
|
|
|
static const char *fonts[] = { "monospace:size=10" }; |
|
|
|
static const char dmenufont[] = "monospace:size=10"; |
|
|
|
static const char dmenufont[] = "monospace:size=10"; |
|
|
@ -44,7 +44,7 @@ static const Layout layouts[] = { |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
/* key definitions */ |
|
|
|
/* key definitions */ |
|
|
|
#define MODKEY Mod1Mask |
|
|
|
#define MODKEY Mod4Mask |
|
|
|
#define TAGKEYS(KEY,TAG) \ |
|
|
|
#define TAGKEYS(KEY,TAG) \ |
|
|
|
{ MODKEY, KEY, view, {.ui = 1 << TAG} }, \
|
|
|
|
{ MODKEY, KEY, view, {.ui = 1 << TAG} }, \
|
|
|
|
{ MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
|
|
|
|
{ MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
|
|
|
@ -56,13 +56,14 @@ static const Layout layouts[] = { |
|
|
|
|
|
|
|
|
|
|
|
/* commands */ |
|
|
|
/* commands */ |
|
|
|
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ |
|
|
|
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 *dmenucmd[] = { "rofi", "-show", "drun", 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_cyan, "-sf", col_gray4, NULL };
|
|
|
|
|
|
|
|
static const char *termcmd[] = { "folder-shell", NULL }; |
|
|
|
|
|
|
|
|
|
|
|
static Key keys[] = { |
|
|
|
static Key keys[] = { |
|
|
|
/* modifier key function argument */ |
|
|
|
/* modifier key function argument */ |
|
|
|
{ MODKEY, XK_p, spawn, {.v = dmenucmd } }, |
|
|
|
{ MODKEY, XK_p, spawn, {.v = dmenucmd } }, |
|
|
|
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, |
|
|
|
{ MODKEY, XK_Return, spawn, {.v = termcmd } }, |
|
|
|
{ MODKEY, XK_b, togglebar, {0} }, |
|
|
|
{ MODKEY, XK_b, togglebar, {0} }, |
|
|
|
{ MODKEY, XK_j, focusstack, {.i = +1 } }, |
|
|
|
{ MODKEY, XK_j, focusstack, {.i = +1 } }, |
|
|
|
{ MODKEY, XK_k, focusstack, {.i = -1 } }, |
|
|
|
{ MODKEY, XK_k, focusstack, {.i = -1 } }, |
|
|
@ -70,7 +71,7 @@ static Key keys[] = { |
|
|
|
{ MODKEY, XK_d, incnmaster, {.i = -1 } }, |
|
|
|
{ MODKEY, XK_d, incnmaster, {.i = -1 } }, |
|
|
|
{ MODKEY, XK_h, setmfact, {.f = -0.05} }, |
|
|
|
{ MODKEY, XK_h, setmfact, {.f = -0.05} }, |
|
|
|
{ MODKEY, XK_l, setmfact, {.f = +0.05} }, |
|
|
|
{ MODKEY, XK_l, setmfact, {.f = +0.05} }, |
|
|
|
{ MODKEY, XK_Return, zoom, {0} }, |
|
|
|
{ MODKEY|ShiftMask, XK_Return, zoom, {0} }, |
|
|
|
{ MODKEY, XK_Tab, view, {0} }, |
|
|
|
{ MODKEY, XK_Tab, view, {0} }, |
|
|
|
{ MODKEY|ShiftMask, XK_c, killclient, {0} }, |
|
|
|
{ MODKEY|ShiftMask, XK_c, killclient, {0} }, |
|
|
|
{ MODKEY, XK_t, setlayout, {.v = &layouts[0]} }, |
|
|
|
{ MODKEY, XK_t, setlayout, {.v = &layouts[0]} }, |
|
|
|