From 2ac40d9676ef9329e36046fb572c0d070a71339d Mon Sep 17 00:00:00 2001 From: sewn Date: Sun, 8 Sep 2024 22:49:49 +0300 Subject: [PATCH] nextlayout: fix config.h --- patches/nextlayout/nextlayout.patch | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/patches/nextlayout/nextlayout.patch b/patches/nextlayout/nextlayout.patch index 2d9d63c..11f4dc7 100644 --- a/patches/nextlayout/nextlayout.patch +++ b/patches/nextlayout/nextlayout.patch @@ -1,17 +1,17 @@ -From 2a3a1dbbc83160070296ae7b9f894649dcb284ef Mon Sep 17 00:00:00 2001 +From 7d8cfa63681830a3af4512799b8260f8249bc514 Mon Sep 17 00:00:00 2001 From: sewn -Date: Sun, 8 Sep 2024 22:46:09 +0300 +Date: Sun, 8 Sep 2024 22:49:33 +0300 Subject: [PATCH] add feature to switch to next available layout ported from suckless cyclelayouts to be slightly more useful https://dwm.suckless.org/patches/cyclelayouts/ --- - config.def.h | 1 + + config.def.h | 2 ++ dwl.c | 12 ++++++++++++ - 2 files changed, 13 insertions(+) + 2 files changed, 14 insertions(+) diff --git a/config.def.h b/config.def.h -index 22d2171..2c8ff86 100644 +index 22d2171..f88a615 100644 --- a/config.def.h +++ b/config.def.h @@ -34,6 +34,7 @@ static const Layout layouts[] = { @@ -22,6 +22,14 @@ index 22d2171..2c8ff86 100644 }; /* monitors */ +@@ -140,6 +141,7 @@ static const Key keys[] = { + { MODKEY, XKB_KEY_f, setlayout, {.v = &layouts[1]} }, + { MODKEY, XKB_KEY_m, setlayout, {.v = &layouts[2]} }, + { MODKEY, XKB_KEY_space, setlayout, {0} }, ++ { MODKEY, XKB_KEY_n, nextlayout, {0} }, + { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_space, togglefloating, {0} }, + { MODKEY, XKB_KEY_e, togglefullscreen, {0} }, + { MODKEY, XKB_KEY_0, view, {.ui = ~0} }, diff --git a/dwl.c b/dwl.c index a2711f6..a66d9d9 100644 --- a/dwl.c