aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKumar Damani <me@kumardamani.net>2026-09-04 01:32:03 +0000
committerKumar Damani <me@kumardamani.net>2026-09-04 01:32:03 +0000
commit1c39187b2f9e97bd0cfa857ce8f7c2179d518096 (patch)
treec64d10f12dc7786dacd91090bae4dfe7a8863f1c
parent9199cdb9e70b4544aa763b32767c9e20a4024024 (diff)
screen lock lightdm
-rw-r--r--config.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/config.h b/config.h
index f8bed4f..51c0b0b 100644
--- a/config.h
+++ b/config.h
@@ -69,6 +69,7 @@ static const char *micmutecmd[] = { "/bin/sh", "-c", "pactl set-source-mute @DEF
static const char *mixercmd[] = { "st", "-e", "pulsemixer", NULL };
static const char *shotselexec[] = { "/bin/sh", "-c", "mkdir -p ~/pics/screenshots; f=~/pics/screenshots/$(date +%Y-%m-%d_%H-%M-%S).png; maim -s \"$f\" && xclip -selection clipboard -t image/png < \"$f\" && dunstify -i \"$f\" \"Screenshot saved\" \"$f\"", NULL };
static const char *shotfullexec[] = { "/bin/sh", "-c", "mkdir -p ~/pics/screenshots; f=~/pics/screenshots/$(date +%Y-%m-%d_%H-%M-%S).png; maim \"$f\" && xclip -selection clipboard -t image/png < \"$f\" && dunstify -i \"$f\" \"Screenshot saved\" \"$f\"", NULL };
+static const char *screenlock[] = { "/bin/sh", "-c", "dm-tool lock", NULL };
static const Key keys[] = {
/* modifier key function argument */
@@ -79,6 +80,7 @@ static const Key keys[] = {
{ 0, XF86XK_AudioMicMute, spawn, {.v = micmutecmd } },
{ 0, XK_Print, spawn, {.v = shotselexec } },
{ ShiftMask, XK_Print, spawn, {.v = shotfullexec } },
+ { MODKEY, XK_Delete, spawn, {.v = screenlock } },
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
{ MODKEY|ShiftMask, XK_a, spawn, {.v = mixercmd } },
{ MODKEY, XK_b, togglebar, {0} },