mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-07 08:37:34 +08:00
trackpoint accel on x1c7
This commit is contained in:
parent
89a5c66949
commit
0990e98c36
1 changed files with 13 additions and 2 deletions
|
|
@ -11,12 +11,23 @@
|
|||
|
||||
# Tap to click
|
||||
touchpad.tapping = true;
|
||||
|
||||
};
|
||||
|
||||
hardware.trackpoint = {
|
||||
enable = true;
|
||||
sensitivity = 240;
|
||||
speed = 250;
|
||||
device = "TPPS/2 Elan TrackPoint"; # Check with `xinput`
|
||||
# FIXME: This doesn't have any effect. Wheras `xinput set-prop` (on CLI) does.
|
||||
#sensitivity = 240;
|
||||
#speed = 250;
|
||||
};
|
||||
|
||||
# Automating the aforementioned `xinput set-prop` ...
|
||||
services.xserver.displayManager.sessionCommands = ''
|
||||
${pkgs.xorg.xinput} --set-prop 'TPPS/2 Elan TrackPoint' 'libinput Accel Speed' 0.8
|
||||
'';
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
libinput # libinput CLI
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue