dwm-noxz

[fork] suckless dwm - personal fork
git clone https://noxz.tech/git/dwm-noxz.git
Log | Files | README | LICENSE

commit: ca2cdc59c44ec22c28993f3d354c9d5980dde263
parent: cf7337b6e584ae6e1867bc5adde24071aadf87ef
author: Chris Noxz <chris@noxz.tech>
date:   Thu, 8 Sep 2022 18:25:16 +0200
Add right click to root window
Mconfig.def.h4++++
1 file changed, 4 insertions(+)
diff --git a/config.def.h b/config.def.h
@@ -77,6 +77,9 @@ static const Layout layouts[] = {
 	[LayoutFloating]            = { "\uE022\uE023",NULL },    /* no layout function means floating behavior */
 };
 
+/* context menu command used when right clicking root window */
+static const char *ctxmenucmd[]  = { "appmenu", NULL };
+
 /* button definitions */
 /* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
 static Button buttons[] = {
@@ -93,6 +96,7 @@ static Button buttons[] = {
 	{ ClkTagBar,        0,              Button3,    toggleview,     {0} },
 	{ ClkTagBar,        Mod4Mask,       Button1,    tag,            {0} },
 	{ ClkTagBar,        Mod4Mask,       Button3,    toggletag,      {0} },
+	{ ClkRootWin,       0,              Button3,    spawn,          {.v = ctxmenucmd } },
 };
 
 /* Xresources preferences to load at startup */