diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-07-13 07:34:22 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-07-13 07:34:22 +0300 |
| commit | 2e906fc5fa9db0aa69cded149732d62b4b219aee (patch) | |
| tree | 914639c533c65bc4da54c33f8b320e999d7bdb7b /niri-config/src | |
| parent | a5a34934df2a6af21a608eb4d6865c234d7381e8 (diff) | |
| download | niri-2e906fc5fa9db0aa69cded149732d62b4b219aee.tar.gz niri-2e906fc5fa9db0aa69cded149732d62b4b219aee.tar.bz2 niri-2e906fc5fa9db0aa69cded149732d62b4b219aee.zip | |
Add middle-emulation libinput flag
Diffstat (limited to 'niri-config/src')
| -rw-r--r-- | niri-config/src/lib.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/niri-config/src/lib.rs b/niri-config/src/lib.rs index d2343ff9..e5998bfb 100644 --- a/niri-config/src/lib.rs +++ b/niri-config/src/lib.rs @@ -177,6 +177,8 @@ pub struct Touchpad { pub left_handed: bool, #[knuffel(child)] pub disabled_on_external_mouse: bool, + #[knuffel(child)] + pub middle_emulation: bool, } #[derive(knuffel::Decode, Debug, Default, PartialEq)] @@ -193,6 +195,8 @@ pub struct Mouse { pub scroll_method: Option<ScrollMethod>, #[knuffel(child)] pub left_handed: bool, + #[knuffel(child)] + pub middle_emulation: bool, } #[derive(knuffel::Decode, Debug, Default, PartialEq)] @@ -207,6 +211,8 @@ pub struct Trackpoint { pub accel_profile: Option<AccelProfile>, #[knuffel(child, unwrap(argument, str))] pub scroll_method: Option<ScrollMethod>, + #[knuffel(child)] + pub middle_emulation: bool, } #[derive(Debug, Clone, Copy, PartialEq, Eq)] @@ -2545,6 +2551,7 @@ mod tests { accel-speed 0.4 accel-profile "flat" scroll-method "no-scroll" + middle-emulation } trackpoint { @@ -2713,6 +2720,7 @@ mod tests { tap_button_map: Some(TapButtonMap::LeftMiddleRight), left_handed: false, disabled_on_external_mouse: true, + middle_emulation: false, }, mouse: Mouse { off: false, @@ -2721,6 +2729,7 @@ mod tests { accel_profile: Some(AccelProfile::Flat), scroll_method: Some(ScrollMethod::NoScroll), left_handed: false, + middle_emulation: true, }, trackpoint: Trackpoint { off: true, @@ -2728,6 +2737,7 @@ mod tests { accel_speed: 0.0, accel_profile: Some(AccelProfile::Flat), scroll_method: Some(ScrollMethod::OnButtonDown), + middle_emulation: false, }, tablet: Tablet { off: false, |
