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 {
250250 #[knuffel(child, unwrap(argument))]
251251 pub scroll_button: Option<u32>,
252252 #[knuffel(child)]
253+ pub left_handed: bool,
254+ #[knuffel(child)]
253255 pub middle_emulation: bool,
254256 }
255257
@@ -3902,6 +3904,7 @@ mod tests {
39023904 scroll_button: Some(
39033905 274,
39043906 ),
3907+ left_handed: false,
39053908 middle_emulation: false,
39063909 },
39073910 trackball: Trackball {
src/input/mod.rsmodified+1 -0
@@ -3536,6 +3536,7 @@ pub fn apply_libinput_settings(config: &niri_config::Input, device: &mut input::
35363536 });
35373537 let _ = device.config_scroll_set_natural_scroll_enabled(c.natural_scroll);
35383538 let _ = device.config_accel_set_speed(c.accel_speed);
3539+ let _ = device.config_left_handed_set(c.left_handed);
35393540 let _ = device.config_middle_emulation_set_enabled(c.middle_emulation);
35403541
35413542 if let Some(accel_profile) = c.accel_profile {