Compare commits

..

No commits in common. "1988d629ec0cbdca0b0d13a981304cadfdcdb7b3" and "e1fa126693b93051fe2399789eb93a57672fb03a" have entirely different histories.

3 changed files with 35 additions and 25 deletions

View File

@ -2,9 +2,9 @@
Allows activating numlock or capslock at startup. Allows activating numlock or capslock at startup.
### Download ### Download
- [numlock-capslock-wlroots-next-f4249db.patch](/dwl/dwl-patches/raw/branch/main/patches/numlock-capslock/numlock-capslock-wlroots-next-f4249db.patch) - [git branch](https://codeberg.org/sevz/dwl/src/branch/numlock-capslock)
- [numlock-capslock-0.8.patch](/dwl/dwl-patches/raw/branch/main/patches/numlock-capslock/numlock-capslock-0.8.patch) - [main 2025-01-20](/dwl/dwl-patches/raw/branch/main/patches/numlock-capslock/numlock-capslock.patch)
- [numlock-capslock.patch](/dwl/dwl-patches/raw/branch/main/patches/numlock-capslock/numlock-capslock-0.7.patch)
### Authors ### Authors
- [fauxmight](https://codeberg.org/fauxmight)
- [sevz](https://codeberg.org/sevz) - [sevz](https://codeberg.org/sevz)

View File

@ -1,18 +1,23 @@
From d889704df0b5957379c2819111afaeee0301cb8d Mon Sep 17 00:00:00 2001 From cbacfb5031b91bc6677b0fb7c07dbe79cc2e0177 Mon Sep 17 00:00:00 2001
From: A Frederick Christensen <dwl@ivories.org> From: =?UTF-8?q?Leonardo=20Hern=C3=A1ndez=20Hern=C3=A1ndez?=
Date: Wed, 25 Feb 2026 20:03:14 -0600 <leohdz172@proton.me>
Subject: [PATCH] Apply numlock-capslock patch Date: Sun, 4 Apr 2021 19:56:09 -0500
Subject: [PATCH] add option to enable numlock/capslock
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Leonardo Hernández Hernández <leohdz172@proton.me>
--- ---
config.def.h | 4 ++++ config.def.h | 4 ++++
dwl.c | 19 +++++++++++++++++++ dwl.c | 19 +++++++++++++++++++
2 files changed, 23 insertions(+) 2 files changed, 23 insertions(+)
diff --git a/config.def.h b/config.def.h diff --git a/config.def.h b/config.def.h
index 8a6eda0..074fb88 100644 index 22d2171d..21dc6201 100644
--- a/config.def.h --- a/config.def.h
+++ b/config.def.h +++ b/config.def.h
@@ -56,6 +56,10 @@ static const struct xkb_rule_names xkb_rules = { @@ -60,6 +60,10 @@ static const struct xkb_rule_names xkb_rules = {
.options = NULL, .options = NULL,
}; };
@ -24,7 +29,7 @@ index 8a6eda0..074fb88 100644
static const int repeat_delay = 600; static const int repeat_delay = 600;
diff --git a/dwl.c b/dwl.c diff --git a/dwl.c b/dwl.c
index 8a9715d..296e31d 100644 index a2711f67..a11f0bcf 100644
--- a/dwl.c --- a/dwl.c
+++ b/dwl.c +++ b/dwl.c
@@ -14,6 +14,7 @@ @@ -14,6 +14,7 @@
@ -35,15 +40,15 @@ index 8a9715d..296e31d 100644
#include <wlr/render/allocator.h> #include <wlr/render/allocator.h>
#include <wlr/render/wlr_renderer.h> #include <wlr/render/wlr_renderer.h>
#include <wlr/types/wlr_alpha_modifier_v1.h> #include <wlr/types/wlr_alpha_modifier_v1.h>
@@ -357,6 +358,7 @@ static void zoom(const Arg *arg); @@ -360,6 +361,7 @@ static void zoom(const Arg *arg);
/* variables */ static const char broken[] = "broken";
static pid_t child_pid = -1; static pid_t child_pid = -1;
static int locked; static int locked;
+static uint32_t locked_mods = 0; +static uint32_t locked_mods = 0;
static void *exclusive_focus; static void *exclusive_focus;
static struct wl_display *dpy; static struct wl_display *dpy;
static struct wl_event_loop *event_loop; static struct wl_event_loop *event_loop;
@@ -945,6 +947,8 @@ createkeyboard(struct wlr_keyboard *keyboard) @@ -877,6 +879,8 @@ createkeyboard(struct wlr_keyboard *keyboard)
/* Set the keymap to match the group keymap */ /* Set the keymap to match the group keymap */
wlr_keyboard_set_keymap(keyboard, kb_group->wlr_group->keyboard.keymap); wlr_keyboard_set_keymap(keyboard, kb_group->wlr_group->keyboard.keymap);
@ -52,7 +57,7 @@ index 8a9715d..296e31d 100644
/* Add the new keyboard to the group */ /* Add the new keyboard to the group */
wlr_keyboard_group_add_keyboard(kb_group->wlr_group, keyboard); wlr_keyboard_group_add_keyboard(kb_group->wlr_group, keyboard);
} }
@@ -966,6 +970,21 @@ createkeyboardgroup(void) @@ -898,6 +902,21 @@ createkeyboardgroup(void)
die("failed to compile keymap"); die("failed to compile keymap");
wlr_keyboard_set_keymap(&group->wlr_group->keyboard, keymap); wlr_keyboard_set_keymap(&group->wlr_group->keyboard, keymap);
@ -75,5 +80,5 @@ index 8a9715d..296e31d 100644
xkb_context_unref(context); xkb_context_unref(context);
-- --
2.52.0 2.46.0

View File

@ -1,18 +1,23 @@
From ba40e5a9866b3a22a9d56c9e30068a3d776e0991 Mon Sep 17 00:00:00 2001 From ec5dbcd9f4629549d3d14b1791305a42479a935f Mon Sep 17 00:00:00 2001
From: A Frederick Christensen <dwl@ivories.org> From: =?UTF-8?q?Leonardo=20Hern=C3=A1ndez=20Hern=C3=A1ndez?=
Date: Wed, 25 Feb 2026 19:59:18 -0600 <leohdz172@proton.me>
Subject: [PATCH] Apply numlock-capslock patch Date: Sun, 4 Apr 2021 19:56:09 -0500
Subject: [PATCH] add option to enable numlock/capslock
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Leonardo Hernández Hernández <leohdz172@proton.me>
--- ---
config.def.h | 4 ++++ config.def.h | 4 ++++
dwl.c | 19 +++++++++++++++++++ dwl.c | 19 +++++++++++++++++++
2 files changed, 23 insertions(+) 2 files changed, 23 insertions(+)
diff --git a/config.def.h b/config.def.h diff --git a/config.def.h b/config.def.h
index 8a6eda0..074fb88 100644 index 22d2171d..21dc6201 100644
--- a/config.def.h --- a/config.def.h
+++ b/config.def.h +++ b/config.def.h
@@ -56,6 +56,10 @@ static const struct xkb_rule_names xkb_rules = { @@ -60,6 +60,10 @@ static const struct xkb_rule_names xkb_rules = {
.options = NULL, .options = NULL,
}; };
@ -24,7 +29,7 @@ index 8a6eda0..074fb88 100644
static const int repeat_delay = 600; static const int repeat_delay = 600;
diff --git a/dwl.c b/dwl.c diff --git a/dwl.c b/dwl.c
index 44f3ad9..c6ace09 100644 index ad21e1ba..d0059ec8 100644
--- a/dwl.c --- a/dwl.c
+++ b/dwl.c +++ b/dwl.c
@@ -14,6 +14,7 @@ @@ -14,6 +14,7 @@
@ -43,7 +48,7 @@ index 44f3ad9..c6ace09 100644
static void *exclusive_focus; static void *exclusive_focus;
static struct wl_display *dpy; static struct wl_display *dpy;
static struct wl_event_loop *event_loop; static struct wl_event_loop *event_loop;
@@ -943,6 +945,8 @@ createkeyboard(struct wlr_keyboard *keyboard) @@ -936,6 +938,8 @@ createkeyboard(struct wlr_keyboard *keyboard)
/* Set the keymap to match the group keymap */ /* Set the keymap to match the group keymap */
wlr_keyboard_set_keymap(keyboard, kb_group->wlr_group->keyboard.keymap); wlr_keyboard_set_keymap(keyboard, kb_group->wlr_group->keyboard.keymap);
@ -52,7 +57,7 @@ index 44f3ad9..c6ace09 100644
/* Add the new keyboard to the group */ /* Add the new keyboard to the group */
wlr_keyboard_group_add_keyboard(kb_group->wlr_group, keyboard); wlr_keyboard_group_add_keyboard(kb_group->wlr_group, keyboard);
} }
@@ -964,6 +968,21 @@ createkeyboardgroup(void) @@ -957,6 +961,21 @@ createkeyboardgroup(void)
die("failed to compile keymap"); die("failed to compile keymap");
wlr_keyboard_set_keymap(&group->wlr_group->keyboard, keymap); wlr_keyboard_set_keymap(&group->wlr_group->keyboard, keymap);
@ -75,5 +80,5 @@ index 44f3ad9..c6ace09 100644
xkb_context_unref(context); xkb_context_unref(context);
-- --
2.52.0 2.48.0