letting it auto run pretty much, god i don't know how to program anymore. This is kinda a joke

This commit is contained in:
theArctesian
2025-09-24 17:59:50 -07:00
parent 742eda3fe5
commit eb5f9ef7da
22 changed files with 2253 additions and 262 deletions

View File

@@ -0,0 +1,45 @@
{ config, lib, pkgs, ... }:
with lib;
{
options.hardware.touchpad.enable = mkEnableOption "Enhanced touchpad support";
config = mkIf config.hardware.touchpad.enable {
# Touchpad support via libinput
services.xserver.libinput = {
enable = true;
touchpad = {
tapping = true;
tappingDragLock = true;
naturalScrolling = true;
scrollMethod = "twofinger";
disableWhileTyping = true;
middleEmulation = true;
accelProfile = "adaptive";
};
};
# Synaptics touchpad (alternative, disabled by default)
services.xserver.synaptics = {
enable = false;
twoFingerScroll = true;
palmDetect = true;
tapButtons = true;
buttonsMap = [ 1 3 2 ];
fingersMap = [ 0 0 0 ];
};
# Touchpad packages
environment.systemPackages = with pkgs; [
libinput
xinput
xorg.xf86inputlibinput
];
# Touchpad gesture support
services.touchegg = {
enable = false; # Disabled by default, enable if needed
};
};
}