From 779e3b0761c8befcc380e4c5bb9389383f459208 Mon Sep 17 00:00:00 2001 From: Remi Akirazar Date: Tue, 24 Feb 2026 22:26:18 -0500 Subject: [PATCH] chore(config.def.h): added keybinds for browser, emacs, lock and updated appmenu call Signed-off by: Remi randormi@devcpu.co Signed-off-by: Remi Akirazar --- config.def.h | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/config.def.h b/config.def.h index 8a6eda0..b8ea056 100644 --- a/config.def.h +++ b/config.def.h @@ -116,26 +116,32 @@ static const enum libinput_config_tap_button_map button_map = LIBINPUT_CONFIG_TA /* commands */ static const char *termcmd[] = { "foot", NULL }; -static const char *menucmd[] = { "wmenu-run", NULL }; +static const char *menucmd[] = { "vicinae", "toggle", NULL }; +static const char *emacs[] = { "emacsclient", "-c", "-a", "emacs", NULL }; +static const char *browser[] = {"brave"}; +static const char *lock[] = {"swaylock"}; static const Key keys[] = { /* Note that Shift changes certain key codes: 2 -> at, etc. */ /* modifier key function argument */ - { MODKEY, XKB_KEY_p, spawn, {.v = menucmd} }, + { MODKEY, XKB_KEY_space, spawn, {.v = menucmd} }, { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_Return, spawn, {.v = termcmd} }, + { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_e, spawn, {.v = emacs} }, + { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_b, spawn, {.v = browser} }, + { MODKEY, XKB_KEY_l, spawn, {.v = lock} }, { MODKEY, XKB_KEY_j, focusstack, {.i = +1} }, { MODKEY, XKB_KEY_k, focusstack, {.i = -1} }, { MODKEY, XKB_KEY_i, incnmaster, {.i = +1} }, { MODKEY, XKB_KEY_d, incnmaster, {.i = -1} }, - { MODKEY, XKB_KEY_h, setmfact, {.f = -0.05f} }, - { MODKEY, XKB_KEY_l, setmfact, {.f = +0.05f} }, + { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_h, setmfact, {.f = -0.05f} }, + { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_l, setmfact, {.f = +0.05f} }, { MODKEY, XKB_KEY_Return, zoom, {0} }, { MODKEY, XKB_KEY_Tab, view, {0} }, { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_c, killclient, {0} }, { MODKEY, XKB_KEY_t, setlayout, {.v = &layouts[0]} }, { MODKEY, XKB_KEY_f, setlayout, {.v = &layouts[1]} }, { MODKEY, XKB_KEY_m, setlayout, {.v = &layouts[2]} }, - { MODKEY, XKB_KEY_space, setlayout, {0} }, + { MODKEY|WLR_MODIFIER_ALT, XKB_KEY_space, setlayout, {0} }, { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_space, togglefloating, {0} }, { MODKEY, XKB_KEY_e, togglefullscreen, {0} }, { MODKEY, XKB_KEY_0, view, {.ui = ~0} },