Compare commits

...

2 Commits

Author SHA1 Message Date
A Frederick Christensen
1988d629ec
numlock-capslock: cleanup a download name 2026-02-25 20:09:34 -06:00
A Frederick Christensen
d36b83b31e
numlock-capslock: fauxmight adopted abandoned patch and updated for 0.8 and wlroots-next 2026-02-25 20:07:02 -06:00
3 changed files with 25 additions and 35 deletions

View File

@ -2,9 +2,9 @@
Allows activating numlock or capslock at startup. Allows activating numlock or capslock at startup.
### Download ### Download
- [git branch](https://codeberg.org/sevz/dwl/src/branch/numlock-capslock) - [numlock-capslock-wlroots-next-f4249db.patch](/dwl/dwl-patches/raw/branch/main/patches/numlock-capslock/numlock-capslock-wlroots-next-f4249db.patch)
- [main 2025-01-20](/dwl/dwl-patches/raw/branch/main/patches/numlock-capslock/numlock-capslock.patch) - [numlock-capslock-0.8.patch](/dwl/dwl-patches/raw/branch/main/patches/numlock-capslock/numlock-capslock-0.8.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,23 +1,18 @@
From ec5dbcd9f4629549d3d14b1791305a42479a935f Mon Sep 17 00:00:00 2001 From ba40e5a9866b3a22a9d56c9e30068a3d776e0991 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Leonardo=20Hern=C3=A1ndez=20Hern=C3=A1ndez?= From: A Frederick Christensen <dwl@ivories.org>
<leohdz172@proton.me> Date: Wed, 25 Feb 2026 19:59:18 -0600
Date: Sun, 4 Apr 2021 19:56:09 -0500 Subject: [PATCH] Apply numlock-capslock patch
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 22d2171d..21dc6201 100644 index 8a6eda0..074fb88 100644
--- a/config.def.h --- a/config.def.h
+++ b/config.def.h +++ b/config.def.h
@@ -60,6 +60,10 @@ static const struct xkb_rule_names xkb_rules = { @@ -56,6 +56,10 @@ static const struct xkb_rule_names xkb_rules = {
.options = NULL, .options = NULL,
}; };
@ -29,7 +24,7 @@ index 22d2171d..21dc6201 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 ad21e1ba..d0059ec8 100644 index 44f3ad9..c6ace09 100644
--- a/dwl.c --- a/dwl.c
+++ b/dwl.c +++ b/dwl.c
@@ -14,6 +14,7 @@ @@ -14,6 +14,7 @@
@ -48,7 +43,7 @@ index ad21e1ba..d0059ec8 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;
@@ -936,6 +938,8 @@ createkeyboard(struct wlr_keyboard *keyboard) @@ -943,6 +945,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);
@ -57,7 +52,7 @@ index ad21e1ba..d0059ec8 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);
} }
@@ -957,6 +961,21 @@ createkeyboardgroup(void) @@ -964,6 +968,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);
@ -80,5 +75,5 @@ index ad21e1ba..d0059ec8 100644
xkb_context_unref(context); xkb_context_unref(context);
-- --
2.48.0 2.52.0

View File

@ -1,23 +1,18 @@
From cbacfb5031b91bc6677b0fb7c07dbe79cc2e0177 Mon Sep 17 00:00:00 2001 From d889704df0b5957379c2819111afaeee0301cb8d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Leonardo=20Hern=C3=A1ndez=20Hern=C3=A1ndez?= From: A Frederick Christensen <dwl@ivories.org>
<leohdz172@proton.me> Date: Wed, 25 Feb 2026 20:03:14 -0600
Date: Sun, 4 Apr 2021 19:56:09 -0500 Subject: [PATCH] Apply numlock-capslock patch
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 22d2171d..21dc6201 100644 index 8a6eda0..074fb88 100644
--- a/config.def.h --- a/config.def.h
+++ b/config.def.h +++ b/config.def.h
@@ -60,6 +60,10 @@ static const struct xkb_rule_names xkb_rules = { @@ -56,6 +56,10 @@ static const struct xkb_rule_names xkb_rules = {
.options = NULL, .options = NULL,
}; };
@ -29,7 +24,7 @@ index 22d2171d..21dc6201 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 a2711f67..a11f0bcf 100644 index 8a9715d..296e31d 100644
--- a/dwl.c --- a/dwl.c
+++ b/dwl.c +++ b/dwl.c
@@ -14,6 +14,7 @@ @@ -14,6 +14,7 @@
@ -40,15 +35,15 @@ index a2711f67..a11f0bcf 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>
@@ -360,6 +361,7 @@ static void zoom(const Arg *arg); @@ -357,6 +358,7 @@ static void zoom(const Arg *arg);
static const char broken[] = "broken"; /* variables */
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;
@@ -877,6 +879,8 @@ createkeyboard(struct wlr_keyboard *keyboard) @@ -945,6 +947,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);
@ -57,7 +52,7 @@ index a2711f67..a11f0bcf 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);
} }
@@ -898,6 +902,21 @@ createkeyboardgroup(void) @@ -966,6 +970,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);
@ -80,5 +75,5 @@ index a2711f67..a11f0bcf 100644
xkb_context_unref(context); xkb_context_unref(context);
-- --
2.46.0 2.52.0