--- config.def.h +++ config.h @@ -5,8 +5,8 @@ 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[] = { "Terminus-10" }; +static const char dmenufont[] = "Terminus-10"; static const char col_gray1[] = "#222222"; static const char col_gray2[] = "#444444"; static const char col_gray3[] = "#bbbbbb"; @@ -27,8 +27,7 @@ * WM_NAME(STRING) = title */ /* class instance title tags mask isfloating monitor */ - { "Gimp", NULL, NULL, 0, 1, -1 }, - { "Firefox", NULL, NULL, 1 << 8, 0, -1 }, + { NULL, NULL, NULL, 0, 0, -1 }, }; /* layout(s) */ @@ -45,7 +44,7 @@ }; /* 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} }, \ @@ -58,11 +57,37 @@ /* commands */ static const char *dmenucmd[] = { "dmenu_run", "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; static const char *termcmd[] = { "st", NULL }; +static const char *lockcmd[] = { "slock", NULL }; +static const char *poweroffcmd[] = { "poweroff", NULL }; +static const char *screenshotcmd[] = { "setroot", "screenshot", NULL }; +static const char *volupcmd[] = { "setroot", "volup", NULL }; +static const char *voldowncmd[] = { "setroot", "voldown", NULL }; +static const char *voltogglecmd[] = { "setroot", "voltoggle", NULL }; +static const char *micupcmd[] = { "setroot", "micup", NULL }; +static const char *micdowncmd[] = { "setroot", "micdown", NULL }; +static const char *mictogglecmd[] = { "setroot", "mictoggle", NULL }; +static const char *lightupcmd[] = { "setroot", "lightup", NULL }; +static const char *lightdowncmd[] = { "setroot", "lightdown", NULL }; +static const char *killdiscordcmd[] = { "pkill", "Discord", NULL }; +static const char *killsteamcmd[] = { "pkill", "steam", NULL }; static const Key keys[] = { /* modifier key function argument */ { MODKEY, XK_p, spawn, {.v = dmenucmd } }, { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, + { MODKEY|ShiftMask, XK_l, spawn, {.v = lockcmd } }, + { MODKEY|ControlMask|ShiftMask, XK_p, spawn, {.v = poweroffcmd } }, + { MODKEY, XK_Print, spawn, {.v = screenshotcmd } }, + { MODKEY, XK_F8, spawn, {.v = volupcmd } }, + { MODKEY, XK_F7, spawn, {.v = voldowncmd } }, + { MODKEY, XK_F6, spawn, {.v = voltogglecmd } }, + { MODKEY|ShiftMask, XK_F8, spawn, {.v = micupcmd } }, + { MODKEY|ShiftMask, XK_F7, spawn, {.v = micdowncmd } }, + { MODKEY|ShiftMask, XK_F6, spawn, {.v = mictogglecmd } }, + { MODKEY, XK_F3, spawn, {.v = lightupcmd } }, + { MODKEY, XK_F2, spawn, {.v = lightdowncmd } }, + { MODKEY|ControlMask|ShiftMask, XK_d, spawn, {.v = killdiscordcmd } }, + { MODKEY|ControlMask|ShiftMask, XK_s, spawn, {.v = killsteamcmd } }, { MODKEY, XK_b, togglebar, {0} }, { MODKEY, XK_j, focusstack, {.i = +1 } }, { MODKEY, XK_k, focusstack, {.i = -1 } },