This commit is contained in:
Yan Lin 2026-01-08 17:26:52 +01:00
parent ca815d0fe7
commit 53beeb774c

View file

@ -1,44 +0,0 @@
{ config, pkgs, lib, ... }:
{
# LinearMouse configuration - reversed scrolling and no acceleration for mouse
home.file.".config/linearmouse/linearmouse.json".text = builtins.toJSON {
"$schema" = "https://schema.linearmouse.app/0.10.2";
schemes = [
{
"if".device.productName = "MX Master 3 Mac";
scrolling.reverse.vertical = true;
pointer = {
acceleration = 0;
speed = 0.6;
};
buttons.mappings = [
{ button = 3; action = "appExpose"; }
{ button = 4; action = "missionControl"; }
{ button = 2; action = "smartZoom"; }
{ scroll = "left"; action = { keyPress = [ "leftArrow" ]; }; }
{ scroll = "right"; action = { keyPress = [ "rightArrow" ]; }; }
];
}
{
"if".device = {
vendorID = "0x004C";
productID = "0x0269";
};
pointer = {
acceleration = 0;
};
}
];
};
# Auto-start LinearMouse on login
launchd.agents.linearmouse = {
enable = true;
config = {
ProgramArguments = [ "/Applications/LinearMouse.app/Contents/MacOS/LinearMouse" ];
RunAtLoad = true;
KeepAlive = false;
};
};
}