summaryrefslogtreecommitdiffhomepage
path: root/config.def.h
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2020-06-24 16:36:51 +0200
committerbakkeby <[email protected]>2020-06-24 16:36:51 +0200
commitce12e0716380011a9d052a9cd40241fed24b3157 (patch)
tree3c6fee06a90f282e190dfe5bcb4364443ceadc10 /config.def.h
parent04906b4ddf587658f7e5f0c7201e27be2ccab01e (diff)
downloaddwm-flexipatch-ce12e0716380011a9d052a9cd40241fed24b3157.tar.gz
dwm-flexipatch-ce12e0716380011a9d052a9cd40241fed24b3157.zip
Adding statusbutton patch ref. #33
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
index 495864c..7fccd75 100644
--- a/config.def.h
+++ b/config.def.h
@@ -42,6 +42,9 @@ static const int vertpadbar = 0; /* vertical padding for statusba
#if STATICSTATUS_PATCH && !STATUSALLMONS_PATCH
static const int statmonval = 0;
#endif // STATICSTATUS_PATCH
+#if STATUSBUTTON_PATCH
+static const char buttonbar[] = "<O>";
+#endif // STATUSBUTTON_PATCH
#if SYSTRAY_PATCH
static const unsigned int systraypinning = 0; /* 0: sloppy systray follows selected monitor, >0: pin systray to monitor X */
static const unsigned int systrayspacing = 2; /* systray spacing */
@@ -1134,9 +1137,16 @@ static Command commands[] = {
#endif // KEYMODES_PATCH
/* button definitions */
+#if STATUSBUTTON_PATCH
+/* click can be ClkButton, ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
+#else
/* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
+#endif //
static Button buttons[] = {
/* click event mask button function argument */
+ #if STATUSBUTTON_PATCH
+ { ClkButton, 0, Button1, spawn, {.v = dmenucmd } },
+ #endif // STATUSBUTTON_PATCH
{ ClkLtSymbol, 0, Button1, setlayout, {0} },
{ ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} },
#if AWESOMEBAR_PATCH