Locking screen with Win+L
This commit is contained in:
parent
81f4df548b
commit
ce2faad343
1 changed files with 2 additions and 0 deletions
2
config.h
2
config.h
|
@ -71,6 +71,7 @@ static const Layout layouts[] = {
|
||||||
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_black, "-nf", col_amber, "-sb", col_amber, "-sf", col_black, NULL };
|
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_black, "-nf", col_amber, "-sb", col_amber, "-sf", col_black, NULL };
|
||||||
static const char *termcmd[] = { "st", NULL };
|
static const char *termcmd[] = { "st", NULL };
|
||||||
|
static const char *lockcmd[] = { "slock", NULL };
|
||||||
static const char *upvol[] = { "pactl", "set-sink-volume", "@DEFAULT_SINK@", "+5%", NULL };
|
static const char *upvol[] = { "pactl", "set-sink-volume", "@DEFAULT_SINK@", "+5%", NULL };
|
||||||
static const char *downvol[] = { "pactl", "set-sink-volume", "@DEFAULT_SINK@", "-5%", NULL };
|
static const char *downvol[] = { "pactl", "set-sink-volume", "@DEFAULT_SINK@", "-5%", NULL };
|
||||||
static const char *mutevol[] = { "pactl", "set-sink-mute", "@DEFAULT_SINK@", "toggle", NULL };
|
static const char *mutevol[] = { "pactl", "set-sink-mute", "@DEFAULT_SINK@", "toggle", NULL };
|
||||||
|
@ -87,6 +88,7 @@ static const Key keys[] = {
|
||||||
{ MODKEY, XK_d, spawn, {.v = dmenucmd } },
|
{ MODKEY, XK_d, spawn, {.v = dmenucmd } },
|
||||||
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
|
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
|
||||||
{ ALTKEY|ControlMask, XK_t, spawn, {.v = termcmd } },
|
{ ALTKEY|ControlMask, XK_t, spawn, {.v = termcmd } },
|
||||||
|
{ MODKEY, XK_l, spawn, {.v = lockcmd } },
|
||||||
{ 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 } },
|
||||||
|
|
Loading…
Reference in a new issue