From a20a1032420925efd65d98dba1f4c2d4b4626df2 Mon Sep 17 00:00:00 2001 From: nate zhou Date: Sun, 8 Mar 2026 11:40:18 +0800 Subject: [PATCH] decklayout: update for 0.8 --- patches/decklayout/README.md | 3 ++- patches/decklayout/decklayout.patch | 34 ++++++++++++++--------------- 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/patches/decklayout/README.md b/patches/decklayout/README.md index dc9e52d..9cba91e 100644 --- a/patches/decklayout/README.md +++ b/patches/decklayout/README.md @@ -2,8 +2,9 @@ Deck is a dwl-layout which is inspired by the dwm Deck layout (which is inspired by TTWM window manager). It applies the monocle-layout to the clients in the stack. The master-client is still visible. The stacked clients are like a deck of cards, hence the name. ### Download +- [v0.8](https://codeberg.org/dwl/dwl-patches/raw/branch/main/patches/decklayout/decklayout.patch) - [git branch](https://codeberg.org/Kana/dwl/src/branch/decklayout) -- [main 2025-10-08](https://codeberg.org/dwl/dwl-patches/raw/branch/main/patches/decklayout/decklayout.patch) +- [main 2025-10-08](https://codeberg.org/dwl/dwl-patches/raw/commit/f8d1cfad116c19c01593f7436468ec0cb7a3297b/patches/decklayout/decklayout.patch) ### Authors - [André Desgualdo Pereira](https://codeberg.org/Kana) diff --git a/patches/decklayout/decklayout.patch b/patches/decklayout/decklayout.patch index bfd4540..423acdb 100644 --- a/patches/decklayout/decklayout.patch +++ b/patches/decklayout/decklayout.patch @@ -1,7 +1,7 @@ -From 095439425e64f2567f141d5d941178b148ef0d3a Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Andr=C3=A9=20Desgualdo=20Pereira?= -Date: Sun, 12 Oct 2025 11:44:26 -0300 -Subject: [PATCH] decklayout +From c488515313e20f51ab961691002f9d483682ab16 Mon Sep 17 00:00:00 2001 +From: nate zhou +Date: Sat, 28 Feb 2026 21:32:46 +0800 +Subject: [PATCH] Patch: decklayout-0.8.patch --- config.def.h | 2 ++ @@ -9,10 +9,10 @@ Subject: [PATCH] decklayout 2 files changed, 63 insertions(+) diff --git a/config.def.h b/config.def.h -index 95c2afa..cc846eb 100644 +index 8a6eda0..3ec9ceb 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 }, @@ -20,16 +20,16 @@ index 95c2afa..cc846eb 100644 }; /* monitors */ -@@ -139,6 +140,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]} }, -+ { MODKEY, XKB_KEY_a, setlayout, {.v = &layouts[3]} }, - { MODKEY, XKB_KEY_space, setlayout, {0} }, - { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_space, togglefloating, {0} }, - { MODKEY, XKB_KEY_e, togglefullscreen, {0} }, +@@ -135,6 +136,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]} }, ++ { MODKEY, XKB_KEY_a, setlayout, {.v = &layouts[3]} }, + { MODKEY, XKB_KEY_space, setlayout, {0} }, + { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_space, togglefloating, {0} }, + { MODKEY, XKB_KEY_e, togglefullscreen, {0} }, diff --git a/dwl.c b/dwl.c -index 12f441e..227004f 100644 +index 44f3ad9..f13f48b 100644 --- a/dwl.c +++ b/dwl.c @@ -278,6 +278,7 @@ static void destroylayersurfacenotify(struct wl_listener *listener, void *data); @@ -40,7 +40,7 @@ index 12f441e..227004f 100644 static void destroypointerconstraint(struct wl_listener *listener, void *data); static void destroysessionlock(struct wl_listener *listener, void *data); static void destroykeyboardgroup(struct wl_listener *listener, void *data); -@@ -1837,6 +1838,66 @@ monocle(Monitor *m) +@@ -1838,6 +1839,66 @@ monocle(Monitor *m) wlr_scene_node_raise_to_top(&c->scene->node); } @@ -108,5 +108,5 @@ index 12f441e..227004f 100644 motionabsolute(struct wl_listener *listener, void *data) { -- -2.51.0 +2.53.0