add linearmouse to macos
This commit is contained in:
parent
e9f9ee2384
commit
2db5d6d8c3
3 changed files with 37 additions and 0 deletions
35
modules/linearmouse.nix
Normal file
35
modules/linearmouse.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{ 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 = {
|
||||
category = "mouse";
|
||||
};
|
||||
};
|
||||
scrolling = {
|
||||
reverse = {
|
||||
vertical = true;
|
||||
};
|
||||
};
|
||||
pointer = {
|
||||
disableAcceleration = true;
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
# Auto-start LinearMouse on login
|
||||
launchd.agents.linearmouse = {
|
||||
enable = true;
|
||||
config = {
|
||||
ProgramArguments = [ "/Applications/LinearMouse.app/Contents/MacOS/LinearMouse" ];
|
||||
RunAtLoad = true;
|
||||
KeepAlive = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue