Add left-handed option support
Browse files at this commit3e215858611bb9b42ce0b9ea55490af8cf3f131dParent: 9f9c4a9- feat
- add left-handed option support
2 changed files +4 -0
- niri-config/src/lib.rs +3 -0
- src/input/mod.rs +1 -0
niri-config/src/lib.rsmodified+3 -0
| @@ -250,6 +250,8 @@ pub struct Trackpoint { | ||
| 250 | 250 | #[knuffel(child, unwrap(argument))] |
| 251 | 251 | pub scroll_button: Option<u32>, |
| 252 | 252 | #[knuffel(child)] |
| 253 | + pub left_handed: bool, | |
| 254 | + #[knuffel(child)] | |
| 253 | 255 | pub middle_emulation: bool, |
| 254 | 256 | } |
| 255 | 257 | |
| @@ -3902,6 +3904,7 @@ mod tests { | ||
| 3902 | 3904 | scroll_button: Some( |
| 3903 | 3905 | 274, |
| 3904 | 3906 | ), |
| 3907 | + left_handed: false, | |
| 3905 | 3908 | middle_emulation: false, |
| 3906 | 3909 | }, |
| 3907 | 3910 | trackball: Trackball { |
src/input/mod.rsmodified+1 -0
| @@ -3536,6 +3536,7 @@ pub fn apply_libinput_settings(config: &niri_config::Input, device: &mut input:: | ||
| 3536 | 3536 | }); |
| 3537 | 3537 | let _ = device.config_scroll_set_natural_scroll_enabled(c.natural_scroll); |
| 3538 | 3538 | let _ = device.config_accel_set_speed(c.accel_speed); |
| 3539 | + let _ = device.config_left_handed_set(c.left_handed); | |
| 3539 | 3540 | let _ = device.config_middle_emulation_set_enabled(c.middle_emulation); |
| 3540 | 3541 | |
| 3541 | 3542 | if let Some(accel_profile) = c.accel_profile { |