diff options
| author | Kumar Damani <me@kumardamani.net> | 2026-09-04 01:32:03 +0000 |
|---|---|---|
| committer | Kumar Damani <me@kumardamani.net> | 2026-09-04 01:32:03 +0000 |
| commit | 1c39187b2f9e97bd0cfa857ce8f7c2179d518096 (patch) | |
| tree | c64d10f12dc7786dacd91090bae4dfe7a8863f1c /config.h | |
| parent | 9199cdb9e70b4544aa763b32767c9e20a4024024 (diff) | |
screen lock lightdm
Diffstat (limited to 'config.h')
| -rw-r--r-- | config.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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} }, |
