"\t --font-name <name> [monospace]\n"
"\t Font name\n"
"\t --font-dpi <dpi> [96]\n"
- "\t Force DPI value for all fonts\n",
+ "\t Force DPI value for all fonts\n"
+ "\n"
+ "Input Options:\n"
+ "\t --xkb-repeat-delay <msecs> [250]\n"
+ "\t Initial delay for key-repeat in ms\n"
+ "\t --xkb-repeat-rate <msecs> [25]\n"
+ "\t Delay between two key-repeats in ms\n",
"wlterm");
/*
* 80 char line:
CONF_OPTION_UINT(0, "font-size", NULL, &wlt_conf.font_size, 12),
CONF_OPTION_STRING(0, "font-name", NULL, &wlt_conf.font_name, "monospace"),
CONF_OPTION_UINT(0, "font-dpi", NULL, &wlt_conf.font_ppi, 96),
+
+ CONF_OPTION_UINT(0, "xkb-repeat-delay", NULL, &wlt_conf.xkb_repeat_delay, 250),
+ CONF_OPTION_UINT(0, "xkb-repeat-rate", NULL, &wlt_conf.xkb_repeat_rate, 25),
};
int main(int argc, char **argv)
char *font_name;
/* font ppi (overrides per monitor PPI) */
unsigned int font_ppi;
+
+ /* xkb key repeat delay */
+ unsigned int xkb_repeat_delay;
+ /* xkb key repeat rate */
+ unsigned int xkb_repeat_rate;
};
extern struct wlt_conf_t wlt_conf;
#include "shl_hook.h"
#include "shl_misc.h"
#include "tsm_vte.h"
+#include "wlt_main.h"
#include "wlt_toolkit.h"
#define LOG_SUBSYSTEM "wlt_toolkit"
} else if (state == WL_KEYBOARD_KEY_STATE_PRESSED) {
disp->repeat_sym = sym;
spec.it_interval.tv_sec = 0;
- spec.it_interval.tv_nsec = 25 * 1000000;
+ spec.it_interval.tv_nsec = wlt_conf.xkb_repeat_rate * 1000000;
spec.it_value.tv_sec = 0;
- spec.it_value.tv_nsec = 250 * 1000000;
+ spec.it_value.tv_nsec = wlt_conf.xkb_repeat_delay * 1000000;
ev_timer_update(disp->repeat_timer, &spec);
}
}