mirror of
https://github.com/YaLTeR/niri.git
synced 2024-09-11 12:35:58 +03:00
Bump libinput to 1.21, add dwtp flag
This commit is contained in:
parent
795da53d53
commit
baa6263cbe
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -1585,6 +1585,7 @@ dependencies = [
|
||||
"input-sys",
|
||||
"io-lifetimes 1.0.11",
|
||||
"libc",
|
||||
"log",
|
||||
"udev",
|
||||
]
|
||||
|
||||
@ -2057,6 +2058,7 @@ dependencies = [
|
||||
"directories",
|
||||
"futures-util",
|
||||
"git-version",
|
||||
"input",
|
||||
"keyframe",
|
||||
"libc",
|
||||
"log",
|
||||
|
@ -50,6 +50,7 @@ clap = { version = "4.4.18", features = ["derive", "string"] }
|
||||
directories = "5.0.1"
|
||||
futures-util = { version = "0.3.30", default-features = false, features = ["std", "io"] }
|
||||
git-version = "0.3.9"
|
||||
input = { version = "0.9.0", features = ["libinput_1_21"] }
|
||||
keyframe = { version = "1.1.1", default-features = false }
|
||||
libc = "0.2.153"
|
||||
log = { version = "0.4.20", features = ["max_level_trace", "release_max_level_debug"] }
|
||||
|
@ -124,6 +124,8 @@ pub struct Touchpad {
|
||||
#[knuffel(child)]
|
||||
pub dwt: bool,
|
||||
#[knuffel(child)]
|
||||
pub dwtp: bool,
|
||||
#[knuffel(child)]
|
||||
pub natural_scroll: bool,
|
||||
#[knuffel(child, unwrap(argument), default)]
|
||||
pub accel_speed: f64,
|
||||
@ -765,6 +767,7 @@ mod tests {
|
||||
touchpad {
|
||||
tap
|
||||
dwt
|
||||
dwtp
|
||||
accel-speed 0.2
|
||||
accel-profile "flat"
|
||||
tap-button-map "left-middle-right"
|
||||
@ -867,6 +870,7 @@ mod tests {
|
||||
touchpad: Touchpad {
|
||||
tap: true,
|
||||
dwt: true,
|
||||
dwtp: true,
|
||||
natural_scroll: false,
|
||||
accel_speed: 0.2,
|
||||
accel_profile: Some(AccelProfile::Flat),
|
||||
|
@ -28,6 +28,7 @@ input {
|
||||
touchpad {
|
||||
tap
|
||||
// dwt
|
||||
// dwtp
|
||||
natural-scroll
|
||||
// accel-speed 0.2
|
||||
// accel-profile "flat"
|
||||
|
@ -1522,6 +1522,7 @@ pub fn apply_libinput_settings(config: &niri_config::Input, device: &mut input::
|
||||
let c = &config.touchpad;
|
||||
let _ = device.config_tap_set_enabled(c.tap);
|
||||
let _ = device.config_dwt_set_enabled(c.dwt);
|
||||
let _ = device.config_dwtp_set_enabled(c.dwtp);
|
||||
let _ = device.config_scroll_set_natural_scroll_enabled(c.natural_scroll);
|
||||
let _ = device.config_accel_set_speed(c.accel_speed);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user