rebase dimkr patches

This commit is contained in:
Dima Krasner
2024-06-21 13:33:56 +00:00
parent 51231b4688
commit 6f898cdbdf
4 changed files with 30 additions and 30 deletions
+8 -8
View File
@@ -1,4 +1,4 @@
From f74add348119aa8e953e2f49bf5588d29c1151e3 Mon Sep 17 00:00:00 2001
From 75423c5e2614f31d95729e25159ed9162f95a667 Mon Sep 17 00:00:00 2001
From: Dima Krasner <dima@dimakrasner.com>
Date: Sun, 11 Feb 2024 09:09:16 +0200
Subject: [PATCH] add the snail layout
@@ -97,10 +97,10 @@ With 2 windows in the master area, many windows in the stack and low mfact:
2 files changed, 105 insertions(+), 1 deletion(-)
diff --git a/config.def.h b/config.def.h
index 9009517..1969030 100644
index a784eb4..e29af77 100644
--- a/config.def.h
+++ b/config.def.h
@@ -34,6 +34,7 @@ static const Layout layouts[] = {
@@ -33,6 +33,7 @@ static const Layout layouts[] = {
{ "[]=", tile },
{ "><>", NULL }, /* no layout function means floating behavior */
{ "[M]", monocle },
@@ -108,7 +108,7 @@ index 9009517..1969030 100644
};
/* monitors */
@@ -44,7 +45,7 @@ static const MonitorRule monrules[] = {
@@ -45,7 +46,7 @@ static const MonitorRule monrules[] = {
{ "eDP-1", 0.5f, 1, 2, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, -1, -1 },
*/
/* defaults */
@@ -117,7 +117,7 @@ index 9009517..1969030 100644
};
/* keyboard */
@@ -134,6 +135,7 @@ static const Key keys[] = {
@@ -136,6 +137,7 @@ static const Key keys[] = {
{ MODKEY, XKB_KEY_t, setlayout, {.v = &layouts[0]} },
{ MODKEY, XKB_KEY_f, setlayout, {.v = &layouts[1]} },
{ MODKEY, XKB_KEY_m, setlayout, {.v = &layouts[2]} },
@@ -126,10 +126,10 @@ index 9009517..1969030 100644
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_space, togglefloating, {0} },
{ MODKEY, XKB_KEY_e, togglefullscreen, {0} },
diff --git a/dwl.c b/dwl.c
index fa76db2..ca7830d 100644
index d48bf40..5dcd64c 100644
--- a/dwl.c
+++ b/dwl.c
@@ -312,6 +312,7 @@ static void setmon(Client *c, Monitor *m, uint32_t newtags);
@@ -331,6 +331,7 @@ static void setmon(Client *c, Monitor *m, uint32_t newtags);
static void setpsel(struct wl_listener *listener, void *data);
static void setsel(struct wl_listener *listener, void *data);
static void setup(void);
@@ -137,7 +137,7 @@ index fa76db2..ca7830d 100644
static void spawn(const Arg *arg);
static void startdrag(struct wl_listener *listener, void *data);
static void tag(const Arg *arg);
@@ -2420,6 +2421,107 @@ setup(void)
@@ -2581,6 +2582,107 @@ setup(void)
#endif
}