aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2020-11-05 21:30:46 -0500
committerMitch Riedstra <mitch@riedstra.us>2020-11-05 21:30:46 -0500
commit94b75fc1aab8fa121b79b67d8bb74de5be80d48a (patch)
tree89b7cb0085e36855de47733ca2eb3c93bfdc80e1
parentd0239d5374f460f0183b70b9e7a947c2a445dd2e (diff)
downloaddwm-94b75fc1aab8fa121b79b67d8bb74de5be80d48a.tar.gz
dwm-94b75fc1aab8fa121b79b67d8bb74de5be80d48a.tar.xz
Add scroll lock as a quick screen lock.
-rw-r--r--config.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/config.h b/config.h
index 5fc358a..52c64a6 100644
--- a/config.h
+++ b/config.h
@@ -84,6 +84,7 @@ static const char *passcmd_type[] = { "passmenu", "--type", DMENU_FLAGS, NULL
static const char *snip_cmd[] = { "snipmenu", DMENU_FLAGS, NULL };
static const char *screenshot_cmd[] = { "xfce4-screenshooter", NULL };
static const char *file_cmd[] = { "thunar", NULL };
+static const char *slock_cmd[] = { "slock", NULL };
static Key keys[] = {
/* modifier key function argument */
@@ -129,6 +130,7 @@ static Key keys[] = {
TAGKEYS( XK_7, 6)
TAGKEYS( XK_8, 7)
TAGKEYS( XK_9, 8)
+ { 0, XK_Scroll_Lock, spawn, {.v = slock_cmd } },
{ MODKEY|ShiftMask, XK_r, self_restart, {0} },
{ MODKEY|ShiftMask, XK_e, quit, {0} },
};