dotfiles/patches/dwm/add-custom-commands-and-keys.patch

25 lines
1.1 KiB
Diff
Raw Normal View History

2025-02-02 22:41:36 +00:00
diff --git a/config.def.h b/config.def.h
2025-02-13 23:10:00 +00:00
index 9efa774..e029834 100644
2025-02-02 22:41:36 +00:00
--- a/config.def.h
+++ b/config.def.h
2025-02-13 23:10:00 +00:00
@@ -60,6 +60,10 @@ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn()
2025-02-02 22:41:36 +00:00
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
static const char *termcmd[] = { "st", NULL };
+/* custom commands */
2025-02-12 20:52:49 +00:00
+static const char *firefox[] = { "firefox", NULL };
2025-02-02 22:41:36 +00:00
+static const char *thunar[] = { "thunar", NULL };
+
static const Key keys[] = {
/* modifier key function argument */
2025-02-13 23:10:00 +00:00
{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
@@ -95,6 +99,8 @@ static const Key keys[] = {
2025-02-02 22:41:36 +00:00
TAGKEYS( XK_8, 7)
TAGKEYS( XK_9, 8)
{ MODKEY|ShiftMask, XK_q, quit, {0} },
2025-02-12 20:52:49 +00:00
+ { MODKEY|ShiftMask, XK_b, spawn, {.v = firefox } },
2025-02-02 22:41:36 +00:00
+ { MODKEY|ShiftMask, XK_f, spawn, {.v = thunar } },
};
/* button definitions */