diff options
Diffstat (limited to 'config.def.h')
| -rw-r--r-- | config.def.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h index da82bd2..201cb1d 100644 --- a/config.def.h +++ b/config.def.h @@ -27,6 +27,7 @@ static const char *const autostart[] = { "way-displays", NULL, "waybar", NULL, "dunst", NULL, + "swayidle", "before-sleep", "swaylock", "lock", "swaylock", NULL, NULL }; @@ -126,12 +127,14 @@ static const enum libinput_config_tap_button_map button_map = LIBINPUT_CONFIG_TA /* commands */ static const char *termcmd[] = { "alacritty", NULL }; static const char *menucmd[] = { "fuzzel", NULL }; +static const char *lockcmd[] = { "swaylock", NULL }; static const Key keys[] = { /* Note that Shift changes certain key codes: c -> C, 2 -> at, etc. */ /* modifier key function argument */ { MODKEY, XKB_KEY_space, spawn, {.v = menucmd} }, { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_Return, spawn, {.v = termcmd} }, + { MODKEY, XKB_KEY_x, spawn, {.v = lockcmd} }, { MODKEY, XKB_KEY_j, focusstack, {.i = +1} }, { MODKEY, XKB_KEY_k, focusstack, {.i = -1} }, { MODKEY, XKB_KEY_i, incnmaster, {.i = +1} }, |
