From 0da1eba5daa2dec15a2816539c076f913486bbd6 Mon Sep 17 00:00:00 2001 From: TiynGER Date: Thu, 28 May 2020 01:48:32 +0200 Subject: [PATCH] statuscmd added --- README.md | 1 + config.def.h | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 28603ca..23c26aa 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ The list below shows the currently applied patches to the master branch. - dwm-deck-6.0.diff (adds deck layout) - dwm-noborder-6.2.diff (removes border if there is only one window) - dwm-pertag-20170513-ceac8c9.diff (allows having a layout/mwfact/barpos/nmaster per tag) +- dwm-statuscmd-6.2.diff (enables dwmblocks compatibility) ## Hotkeys There are various shortcuts and hotkeys used in this version. Included in my build are the following. diff --git a/config.def.h b/config.def.h index ef13d20..8737574 100644 --- a/config.def.h +++ b/config.def.h @@ -49,10 +49,10 @@ static const int resizehints = 1; /* 1 means respect size hints in tiled resi static const Layout layouts[] = { /* symbol arrange function */ - { "[M]", monocle }, { "[]=", tile }, /* first entry is default */ - { "[D]", deck }, { "><>", NULL }, /* no layout function means floating behavior */ + { "[M]", monocle }, + { "[D]", deck }, }; /* key definitions */ @@ -116,6 +116,9 @@ static Button buttons[] = { { ClkLtSymbol, 0, Button1, setlayout, {0} }, { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} }, { ClkWinTitle, 0, Button2, zoom, {0} }, + { ClkStatusText, 0, Button1, sigdwmblocks, {.i = 1} }, + { ClkStatusText, 0, Button2, sigdwmblocks, {.i = 2} }, + { ClkStatusText, 0, Button3, sigdwmblocks, {.i = 3} }, { ClkClientWin, MODKEY, Button1, movemouse, {0} }, { ClkClientWin, MODKEY, Button2, togglefloating, {0} }, { ClkClientWin, MODKEY, Button3, resizemouse, {0} },