From 7c01eac9a7e543a78240c36e254a51ea2907aed7 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Tue, 28 May 2019 15:40:54 +0100 Subject: [PATCH] Adds shortcut for lock / shutdown --- config.def.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config.def.h b/config.def.h index 4e3a05c..04fbe36 100644 --- a/config.def.h +++ b/config.def.h @@ -79,6 +79,8 @@ static const char *date[] = { "datetime", NULL }; static const char *playpause[] = { "playerctl", "play-pause", NULL }; +static const char *logout[] = { "rofi-shutdown", NULL }; + #include "movestack.c" static Key keys[] = { /* modifier key function argument */ @@ -93,6 +95,7 @@ static Key keys[] = { { MODKEY, XK_d, incnmaster, {.i = -1 } }, { MODKEY, XK_h, setmfact, {.f = -0.05} }, { MODKEY, XK_l, setmfact, {.f = +0.05} }, + { MODKEY|ShiftMask, XK_l, spawn, {.v = logout} }, { MODKEY|ShiftMask, XK_Return, zoom, {0} }, { MODKEY, XK_Tab, view, {0} }, { MODKEY, XK_q, killclient, {0} },