1
0
mirror of https://github.com/alrayyes/dwm synced 2023-11-14 15:56:31 +00:00

Added cyclelayout patch

This commit is contained in:
Ryan Kes 2019-02-17 19:24:39 +01:00
parent e82f09e7fc
commit ffac24f33f
2 changed files with 7 additions and 2 deletions

View File

@ -17,6 +17,7 @@ _patches=(
"https://dwm.suckless.org/patches/noborder/dwm-noborder-20170207-bb3bd6f.diff" "https://dwm.suckless.org/patches/noborder/dwm-noborder-20170207-bb3bd6f.diff"
"https://dwm.suckless.org/patches/attachaside/dwm-attachaside-20180126-db22360.diff" "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/autostart/dwm-autostart-20161205-bb3bd6f.diff"
"https://dwm.suckless.org/patches/cyclelayouts/dwm-cyclelayouts-20180524-6.2.diff"
) )
source=(http://dl.suckless.org/dwm/dwm-$pkgver.tar.gz source=(http://dl.suckless.org/dwm/dwm-$pkgver.tar.gz
@ -25,12 +26,13 @@ source=(http://dl.suckless.org/dwm/dwm-$pkgver.tar.gz
"${_patches[@]}") "${_patches[@]}")
md5sums=('9929845ccdec4d2cc191f16210dd7f3d' md5sums=('9929845ccdec4d2cc191f16210dd7f3d'
'8c46375a39600b69954298febfdff020' '40ee758824a08469db3af95ab15d2222'
'939f403a71b6e85261d09fc3412269ee' '939f403a71b6e85261d09fc3412269ee'
'2c19f1a3db59e158c45483668f4cee24' '2c19f1a3db59e158c45483668f4cee24'
'fbb786263f2d714b18368ff64779d669' 'fbb786263f2d714b18368ff64779d669'
'c75af619c04cfae7b9740ec140d1dc6c' 'c75af619c04cfae7b9740ec140d1dc6c'
'46ff022e2a2c6139e71399eb19d1aebb') '46ff022e2a2c6139e71399eb19d1aebb'
'5baffd8c124095d06b133e9b31a854b2')
prepare() { prepare() {
cd $srcdir/$pkgname-$pkgver cd $srcdir/$pkgname-$pkgver

View File

@ -45,6 +45,7 @@ static const Layout layouts[] = {
{ "[]=", tile }, /* first entry is default */ { "[]=", tile }, /* first entry is default */
{ "><>", NULL }, /* no layout function means floating behavior */ { "><>", NULL }, /* no layout function means floating behavior */
{ "[M]", monocle }, { "[M]", monocle },
{ NULL, NULL },
}; };
/* key definitions */ /* key definitions */
@ -80,6 +81,8 @@ static Key keys[] = {
{ MODKEY, XK_t, setlayout, {.v = &layouts[0]} }, { MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
{ MODKEY, XK_f, setlayout, {.v = &layouts[1]} }, { MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
{ MODKEY, XK_m, setlayout, {.v = &layouts[2]} }, { MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
{ MODKEY|ControlMask, XK_comma, cyclelayout, {.i = -1 } },
{ MODKEY|ControlMask, XK_period, cyclelayout, {.i = +1 } },
{ MODKEY, XK_space, setlayout, {0} }, { MODKEY, XK_space, setlayout, {0} },
{ MODKEY|ShiftMask, XK_space, togglefloating, {0} }, { MODKEY|ShiftMask, XK_space, togglefloating, {0} },
{ MODKEY, XK_0, view, {.ui = ~0 } }, { MODKEY, XK_0, view, {.ui = ~0 } },