diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2023-09-16 20:01:52 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2023-09-16 21:52:25 +0400 |
| commit | 3a5248933077f16a2bc4472488a8f25df0618aca (patch) | |
| tree | 14acd6c4d77ba12d7cca647cf5e09f207d1d3c2d /src | |
| parent | b66b4399ad2e178c3ba36c6fc5a6e65fd5aa4b17 (diff) | |
| download | niri-3a5248933077f16a2bc4472488a8f25df0618aca.tar.gz niri-3a5248933077f16a2bc4472488a8f25df0618aca.tar.bz2 niri-3a5248933077f16a2bc4472488a8f25df0618aca.zip | |
Change default repeat to 600
660 comes from Xorg, but feels kind of slow. The wlroots and sway
default is 600, which is a little better.
The 25 repeat interval matches between Xorg (where it is defined in
terms of interval, rather than rate) and wlroots.
Diffstat (limited to 'src')
| -rw-r--r-- | src/config.rs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/config.rs b/src/config.rs index 354a1c6f..742481c8 100644 --- a/src/config.rs +++ b/src/config.rs @@ -30,10 +30,9 @@ pub struct Input { pub struct Keyboard { #[knuffel(child, default)] pub xkb: Xkb, - // The default value represents the one used by Xorg. - #[knuffel(child, unwrap(argument), default = 660)] + // The defaults were chosen to match wlroots and sway. + #[knuffel(child, unwrap(argument), default = 600)] pub repeat_delay: u16, - // The default value represents the one used by Xorg. #[knuffel(child, unwrap(argument), default = 25)] pub repeat_rate: u8, } @@ -250,7 +249,7 @@ mod tests { r#" input { keyboard { - repeat-delay 660 + repeat-delay 600 repeat-rate 25 xkb { layout "us,ru" @@ -285,7 +284,7 @@ mod tests { options: Some("grp:win_space_toggle".to_owned()), ..Default::default() }, - repeat_delay: 660, + repeat_delay: 600, repeat_rate: 25, }, touchpad: Touchpad { |
