libinput
This commit is contained in:
parent
deaefd4e06
commit
62eebe2012
3 changed files with 33 additions and 5 deletions
|
@ -38,6 +38,7 @@
|
||||||
bluetooth.enable = true;
|
bluetooth.enable = true;
|
||||||
pipewire.enable = true;
|
pipewire.enable = true;
|
||||||
print.enable = true;
|
print.enable = true;
|
||||||
|
pointer.enable = true;
|
||||||
};
|
};
|
||||||
dev = {
|
dev = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -188,11 +188,6 @@ in {
|
||||||
input = {
|
input = {
|
||||||
kb_layout = "us";
|
kb_layout = "us";
|
||||||
|
|
||||||
touchpad = {
|
|
||||||
disable_while_typing = false;
|
|
||||||
natural_scroll = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
follow_mouse = 1;
|
follow_mouse = 1;
|
||||||
|
|
||||||
sensitivity = 0; # -1.0 - 1.0, 0 means no modification
|
sensitivity = 0; # -1.0 - 1.0, 0 means no modification
|
||||||
|
|
32
modules/hardware/pointer.nix
Normal file
32
modules/hardware/pointer.nix
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
{ pkgs, config, lib, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
cfg = config.modules.hardware.pointer;
|
||||||
|
in {
|
||||||
|
options.modules.hardware.pointer = {
|
||||||
|
enable = mkEnableOption "Enable libinput tuning";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
services.libinput = {
|
||||||
|
enable = true;
|
||||||
|
mouse = {
|
||||||
|
accelProfile = "flat"; # gameing
|
||||||
|
|
||||||
|
disableWhileTyping = false;
|
||||||
|
middleEmulation = false;
|
||||||
|
};
|
||||||
|
touchpad = {
|
||||||
|
scrollMethod = "twofinger";
|
||||||
|
sendEventsMode = "disabled-on-external-mouse";
|
||||||
|
naturalScrolling = true;
|
||||||
|
tapping = true;
|
||||||
|
tappingDragLock = false;
|
||||||
|
|
||||||
|
disableWhileTyping = false;
|
||||||
|
middleEmulation = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue