From 1c39187b2f9e97bd0cfa857ce8f7c2179d518096 Mon Sep 17 00:00:00 2001 From: Kumar Damani Date: Thu, 3 Sep 2026 21:32:03 -0400 Subject: screen lock lightdm --- config.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'config.h') 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} }, -- cgit v1.2.3