calibrate itsd
This commit is contained in:
parent
387a11dfba
commit
50103723ab
1 changed files with 31 additions and 3 deletions
|
@ -160,12 +160,40 @@
|
|||
wl-clipboard
|
||||
];
|
||||
|
||||
# We need to use a fork of iptsd for the LiftTimeout option
|
||||
# https://github.com/linux-surface/iptsd/issues/166#issuecomment-2391567615
|
||||
nixpkgs.overlays = let
|
||||
iptsd_overlay = self: super: {
|
||||
iptsd = super.iptsd.overrideAttrs (prev: {
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "wvffle";
|
||||
repo = "iptsd";
|
||||
rev = "9c3e4c7b85767a3239bb2ba1ee12430ba5c92a86";
|
||||
hash = "sha256-wyCstqTpyFDLRe/AGFrjJi9A+txwkFNbsW4KLNcMf1Q=";
|
||||
};
|
||||
});
|
||||
};
|
||||
in [iptsd_overlay];
|
||||
# Setup iptsd for touch and stylus support
|
||||
services.iptsd = {
|
||||
enable = true;
|
||||
config.Touchscreen = {
|
||||
# DisableOnPalm = true;
|
||||
DisableOnStylus = true;
|
||||
config = {
|
||||
Touchscreen = {
|
||||
DisableOnPalm = true;
|
||||
DisableOnStylus = true;
|
||||
};
|
||||
Contacts = {
|
||||
SizeMin = "0.775";
|
||||
SizeMax = "1.710";
|
||||
AspectMin = "1.005";
|
||||
AspectMax = "1.470";
|
||||
};
|
||||
Stylus = {
|
||||
LiftTimeout = "0.07";
|
||||
};
|
||||
DFT = {
|
||||
PositionMinAmp = "10";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue