dwl

My patch set and modifications to dwl
git clone git://git.ethandl.dev/dwl
Log | Files | Refs | README | LICENSE

commit 91b18d4d4d70883a60e7150c2d8a7e3e7f620a79
parent e629feabaf5590ac3583dc7e96412e91f9ed3ff5
Author: Lauri Gustafsson <me@gustafla.space>
Date:   Thu,  2 Jul 2020 23:41:12 +0300

Add repeat delay and repeat rate to config.h (#13)


Diffstat:
Mconfig.def.h | 2++
Mdwl.c | 2+-
2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/config.def.h b/config.def.h @@ -37,6 +37,8 @@ static const struct xkb_rule_names xkb_rules = { .options = "ctrl:nocaps", */ }; +static const int repeat_rate = 25; +static const int repeat_delay = 600; #define MODKEY WLR_MODIFIER_ALT #define TAGKEYS(KEY,SKEY,TAG) \ diff --git a/dwl.c b/dwl.c @@ -391,7 +391,7 @@ createkeyboard(struct wlr_input_device *device) wlr_keyboard_set_keymap(device->keyboard, keymap); xkb_keymap_unref(keymap); xkb_context_unref(context); - wlr_keyboard_set_repeat_info(device->keyboard, 25, 600); + wlr_keyboard_set_repeat_info(device->keyboard, repeat_rate, repeat_delay); /* Here we set up listeners for keyboard events. */ kb->modifiers.notify = keypressmod;