config: add cursor.blink-rate option

The default is 500ms, which corresponds to the old, hardcoded default.

Closes #1707
This commit is contained in:
Daniel Eklöf 2024-05-20 09:03:29 +02:00
parent bc193c7be5
commit c4f1380943
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
7 changed files with 37 additions and 11 deletions

View file

@ -262,7 +262,10 @@ struct config {
struct {
enum cursor_style style;
enum cursor_unfocused_style unfocused_style;
bool blink;
struct {
bool enabled;
uint32_t rate_ms;
} blink;
struct {
uint32_t text;
uint32_t cursor;