aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2024-02-02 21:00:45 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2024-02-02 21:00:45 +0530
commit4898344e5fadfe6fcbcdfb093ff1163494fe76e4 (patch)
tree5f203461989d37a944978dfeb9c813e02500cb1d /config.def.h
parentb77c540b22b145f19fff86e36490ae26a734c842 (diff)
add swaylock
Diffstat (limited to '')
-rw-r--r--config.def.h3
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} },