mirror of
https://github.com/alrayyes/dwm.git
synced 2024-11-22 03:26:23 +00:00
added gridmode patch
This commit is contained in:
parent
ffac24f33f
commit
c99f256dd1
2 changed files with 9 additions and 3 deletions
7
PKGBUILD
7
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,16 +27,18 @@ 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)..."
|
||||
|
|
3
config.h
3
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} },
|
||||
|
|
Loading…
Reference in a new issue