mirror of
https://codeberg.org/dwl/dwl-patches.git
synced 2025-09-07 11:44:51 +00:00
nextlayout: fix config.h
This commit is contained in:
parent
084b90b98e
commit
2ac40d9676
@ -1,17 +1,17 @@
|
||||
From 2a3a1dbbc83160070296ae7b9f894649dcb284ef Mon Sep 17 00:00:00 2001
|
||||
From 7d8cfa63681830a3af4512799b8260f8249bc514 Mon Sep 17 00:00:00 2001
|
||||
From: sewn <sewn@disroot.org>
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user