Add more keybindings

This commit is contained in:
Candifloss 2025-01-17 11:18:04 +05:30
parent 99631440cd
commit 7b65ab4d15
2 changed files with 8 additions and 0 deletions

View File

@ -62,11 +62,19 @@ static const Layout layouts[] = {
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
static const char *dmenucmd[] = { "vonalc", "toggle", NULL };
static const char *termcmd[] = { "wezterm", NULL };
static const char *browsercmd[] = { "firefox", "--private-window", NULL };
static const char *editorcmd[] = { "codium", NULL };
static const char *fmcmd[] = { "nautilus", NULL };
static const char *keepasscmd[] = { "keepassxc", NULL };
static const Key keys[] = {
/* modifier key function argument */
{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
{ ControlMask|Mod1Mask, XK_p, spawn, {.v = browsercmd } },
{ ControlMask|Mod1Mask, XK_c, spawn, {.v = editorcmd } },
{ ControlMask|Mod1Mask, XK_f, spawn, {.v = fmcmd } },
{ ControlMask|Mod1Mask, XK_k, spawn, {.v = keepasscmd } },
{ MODKEY, XK_b, togglebar, {0} },
{ MODKEY, XK_j, focusstack, {.i = +1 } },
{ MODKEY, XK_k, focusstack, {.i = -1 } },

BIN
dwm

Binary file not shown.