~nullsh/dwm

53d05cfc71bdf3ea46996c702ebf51f841ff7f1a — nullsh 4 months ago 1f6d97f
add lockscreen via slock using Mod+L
3 files changed, 6 insertions(+), 3 deletions(-)

M config.h
A slock
M st/config.h
M config.h => config.h +4 -2
@@ 5,8 5,8 @@ static const unsigned int borderpx  = 1;        /* 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[]          = { "terminus:size=12" };
static const char dmenufont[]       = "terminus:size=12";
static const char *fonts[]          = { "terminus:size=14" };
static const char dmenufont[]       = "terminus:size=14";
static const char col_gray1[]       = "#0a0404";
static const char col_gray2[]       = "#444444";
static const char col_gray3[]       = "#bbbbbb";


@@ 63,11 63,13 @@ 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[]  = { "st", "zsh", NULL };
static const char *lock[] = { "slock", NULL };

static 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 = lock } },
	{ MODKEY,                       XK_b,      togglebar,      {0} },
	{ MODKEY,                       XK_j,      focusstack,     {.i = +1 } },
	{ MODKEY,                       XK_k,      focusstack,     {.i = -1 } },

A slock => slock +1 -0
@@ 0,0 1,1 @@
Subproject commit 35633d45672d14bd798c478c45d1a17064701aa9

M st/config.h => st/config.h +1 -1
@@ 5,7 5,7 @@
 *
 * font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
 */
static char *font = "terminus:pixelsize=16:antialias=true:autohint=true";
static char *font = "terminus:pixelsize=18:antialias=true:autohint=true";
static int borderpx = 2;

/*