diff --git a/config.h b/config.h index 0d2d89e..49c2256 100644 --- a/config.h +++ b/config.h @@ -5,8 +5,8 @@ static const unsigned int borderpx = 0; /* 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 = 0; /* 0 means bottom bar */ -static const char *fonts[] = { "monospace:size=9" }; -static const char dmenufont[] = "monospace:size=9"; +static const char *fonts[] = { "monospace:size=8" }; +static const char dmenufont[] = "monospace:size=8"; static const char col_gray1[] = "#222222"; static const char col_gray2[] = "#444444"; static const char col_gray3[] = "#bbbbbb"; @@ -58,10 +58,11 @@ static const Layout layouts[] = { 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[] = { "urxvt", NULL }; +#include static Key keys[] = { /* modifier key function argument */ - { MODKEY, XK_p, spawn, {.v = dmenucmd } }, + { MODKEY, XK_d, spawn, {.v = dmenucmd } }, { MODKEY, XK_Return, spawn, {.v = termcmd } }, { MODKEY, XK_b, togglebar, {0} }, { MODKEY, XK_j, focusstack, {.i = +1 } }, @@ -73,6 +74,8 @@ static Key keys[] = { { MODKEY|ShiftMask, XK_Return, zoom, {0} }, { MODKEY, XK_Tab, view, {0} }, { MODKEY, XK_q, killclient, {0} }, + { MODKEY, XK_w, spawn, SHCMD("$BROWSER")}, + { MODKEY, XK_r, spawn, SHCMD("$TERM -e ranger"}, { MODKEY, XK_t, setlayout, {.v = &layouts[0]} }, { MODKEY, XK_f, setlayout, {.v = &layouts[1]} }, { MODKEY, XK_m, setlayout, {.v = &layouts[2]} }, @@ -93,7 +96,15 @@ static Key keys[] = { TAGKEYS( XK_7, 6) TAGKEYS( XK_8, 7) TAGKEYS( XK_9, 8) - { MODKEY|ShiftMask, XK_e, quit, {0} }, + { MODKEY|ShiftMask, XK_Escape, quit, {0} }, + /*special keys*/ + { 0, XF86XK_TouchpadToggle, spawn, SHCMD("(synclient | grep 'TouchpadOff.*1' && syclient TouchpadOff=0) || synclient TouchpadOff=1") }, + { 0, XF86XK_MonBrightnessUp, spawn, SHCMD("light -A 10") }, + { 0, XF86XK_MonBrightnessDown, spawn, SHCMD("light -U 10") }, + { 0, XF86XK_AudioMute, spawn, SHCMD("pamixer -t") }, + { 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("pamixer --allow-boost -i 5") }, + { 0, XF86XK_AudioLowerVolume, spawn, SHCMD("pamixer --allow-boost -d 5") }, + { 0, XF86XK_Sleep, spawn, SHCMD("sudo -A zzz") }, }; /* button definitions */