From 9f69479d70978ca59768b8c1340c821f61c75ba2 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Fri, 10 Mar 2023 15:54:26 +0530 Subject: input: keybinds for screenlock and damb --- config.def.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config.def.h b/config.def.h index 278cffc..adcd7d7 100644 --- a/config.def.h +++ b/config.def.h @@ -107,8 +107,10 @@ static const enum libinput_config_tap_button_map button_map = LIBINPUT_CONFIG_TA static const char *termcmd[] = { "foot", NULL }; static const char *menucmd[] = { "wmenu_run", NULL }; static const char *nnnfm[] = { "foot", "nnn", "-decC", NULL }; +static const char *damb[] = { "damb", NULL }; /* control */ +static const char *scrlock[] = { "waylock", "-init-color", "0x000000", NULL }; static const char *upbri[] = { "brictl", "-i", "1", NULL }; static const char *downbri[] = { "brictl", "-d", "1", NULL }; static const char *upvol[] = { "pamixer", "-i", "5", NULL }; @@ -122,6 +124,8 @@ static const Key keys[] = { { MODKEY, XKB_KEY_p, spawn, {.v = menucmd} }, { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_Return, spawn, {.v = termcmd} }, { MODKEY, XKB_KEY_n, spawn, {.v = nnnfm} }, + { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_A, spawn, {.v = damb} }, + { MODKEY, XKB_KEY_x, spawn, {.v = scrlock} }, { 0, XKB_KEY_XF86MonBrightnessDown, spawn, {.v = downbri} }, { 0, XKB_KEY_XF86MonBrightnessUp, spawn, {.v = upbri} }, { 0, XKB_KEY_XF86AudioMute, spawn, {.v = voltogl} }, -- cgit v1.2.3