~saurabhs/dwm

38587ef73d50044e9b70bd488dda7d04acb05a6f — Saurabh S 6 months ago 15aa0b4
Add screenlock
1 files changed, 2 insertions(+), 0 deletions(-)

M config.h
M config.h => config.h +2 -0
@@ 61,12 61,14 @@ 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_gray2, "-sf", col_gray4, NULL };
static const char *termcmd[]  = { "st", NULL };
static const char *fmcmd[]  = { "nemo", NULL };
static const char *lockcmd[] = { "slock", "NULL" };

static Key keys[] = {
	/* modifier                     key        function        argument */
	{ MODKEY,                       XK_d,      spawn,          {.v = dmenucmd } },
	{ MODKEY,                       XK_Return, spawn,          {.v = termcmd } },
	{ MODKEY|ShiftMask,             XK_Return, spawn,          {.v = fmcmd } },
	{ MODKEY|ShiftMask,             XK_l,      spawn,          {.v = lockcmd } },
	{ MODKEY,                       XK_b,      togglebar,      {0} },
	{ MODKEY,                       XK_j,      focusstack,     {.i = +1 } },
	{ MODKEY,                       XK_k,      focusstack,     {.i = -1 } },