forge
Explore
Log in

Don't you dare go Hollow

Add left-handed option support

Browse files at this commit

3e215858611bb9b42ce0b9ea55490af8cf3f131ddbeleyParent: 9f9c4a9
  • feat
    • add left-handed option support
Show full message
feat(trackpoint): add left-handed option support
niri-config/src/lib.rsmodified+3 -0
@@ -250,6 +250,8 @@ pub struct Trackpoint {
250 #[knuffel(child, unwrap(argument))]250 #[knuffel(child, unwrap(argument))]
251 pub scroll_button: Option<u32>,251 pub scroll_button: Option<u32>,
252 #[knuffel(child)]252 #[knuffel(child)]
253+ pub left_handed: bool,
254+ #[knuffel(child)]
253 pub middle_emulation: bool,255 pub middle_emulation: bool,
254 }256 }
255 257
@@ -3902,6 +3904,7 @@ mod tests {
3902 scroll_button: Some(3904 scroll_button: Some(
3903 274,3905 274,
3904 ),3906 ),
3907+ left_handed: false,
3905 middle_emulation: false,3908 middle_emulation: false,
3906 },3909 },
3907 trackball: Trackball {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 let _ = device.config_scroll_set_natural_scroll_enabled(c.natural_scroll);3537 let _ = device.config_scroll_set_natural_scroll_enabled(c.natural_scroll);
3538 let _ = device.config_accel_set_speed(c.accel_speed);3538 let _ = device.config_accel_set_speed(c.accel_speed);
3539+ let _ = device.config_left_handed_set(c.left_handed);
3539 let _ = device.config_middle_emulation_set_enabled(c.middle_emulation);3540 let _ = device.config_middle_emulation_set_enabled(c.middle_emulation);
3540 3541
3541 if let Some(accel_profile) = c.accel_profile {3542 if let Some(accel_profile) = c.accel_profile {