From c99f256dd1a8aa2cc5169fbc82798dd08bd7cf7c Mon Sep 17 00:00:00 2001 From: Ryan Kes Date: Mon, 18 Feb 2019 15:08:47 +0100 Subject: [PATCH] added gridmode patch --- PKGBUILD | 9 ++++++--- config.h | 3 +++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index 2a10b42..26da0d1 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -18,6 +18,7 @@ _patches=( "https://dwm.suckless.org/patches/attachaside/dwm-attachaside-20180126-db22360.diff" "https://dwm.suckless.org/patches/autostart/dwm-autostart-20161205-bb3bd6f.diff" "https://dwm.suckless.org/patches/cyclelayouts/dwm-cyclelayouts-20180524-6.2.diff" + "https://dwm.suckless.org/patches/gridmode/dwm-gridmode-20170909-ceac8c9.diff" ) source=(http://dl.suckless.org/dwm/dwm-$pkgver.tar.gz @@ -26,17 +27,19 @@ source=(http://dl.suckless.org/dwm/dwm-$pkgver.tar.gz "${_patches[@]}") md5sums=('9929845ccdec4d2cc191f16210dd7f3d' - '40ee758824a08469db3af95ab15d2222' + '30c9a90a677935fb17b2fd0a4ae74f3f' '939f403a71b6e85261d09fc3412269ee' '2c19f1a3db59e158c45483668f4cee24' 'fbb786263f2d714b18368ff64779d669' 'c75af619c04cfae7b9740ec140d1dc6c' '46ff022e2a2c6139e71399eb19d1aebb' - '5baffd8c124095d06b133e9b31a854b2') + '5baffd8c124095d06b133e9b31a854b2' + '6055775113fd4dc06200bc6aaafb72fb') prepare() { cd $srcdir/$pkgname-$pkgver - + sed -i "25 a \ \t{ NULL, NULL }," "$srcdir/$(basename ${_patches[5]})" + for patch in "${_patches[@]}"; do echo "Applying patch $(basename $patch)..." patch -Np1 -i "$srcdir/$(basename $patch)" diff --git a/config.h b/config.h index 65625a4..f834393 100644 --- a/config.h +++ b/config.h @@ -40,11 +40,13 @@ static const float mfact = 0.55; /* factor of master area size [0.05..0.95] static const int nmaster = 1; /* number of clients in master area */ static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */ +#include "layouts.c" static const Layout layouts[] = { /* symbol arrange function */ { "[]=", tile }, /* first entry is default */ { "><>", NULL }, /* no layout function means floating behavior */ { "[M]", monocle }, + { "HHH", grid }, { NULL, NULL }, }; @@ -81,6 +83,7 @@ static Key keys[] = { { MODKEY, XK_t, setlayout, {.v = &layouts[0]} }, { MODKEY, XK_f, setlayout, {.v = &layouts[1]} }, { MODKEY, XK_m, setlayout, {.v = &layouts[2]} }, + { MODKEY, XK_g, setlayout, {.v = &layouts[3]} }, { MODKEY|ControlMask, XK_comma, cyclelayout, {.i = -1 } }, { MODKEY|ControlMask, XK_period, cyclelayout, {.i = +1 } }, { MODKEY, XK_space, setlayout, {0} },