add linearmouse to macos
This commit is contained in:
parent
e9f9ee2384
commit
2db5d6d8c3
3 changed files with 37 additions and 0 deletions
|
|
@ -21,6 +21,7 @@
|
||||||
../../modules/claude-code.nix
|
../../modules/claude-code.nix
|
||||||
../../modules/tex.nix
|
../../modules/tex.nix
|
||||||
../../modules/fonts.nix
|
../../modules/fonts.nix
|
||||||
|
../../modules/linearmouse.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,7 @@
|
||||||
"hiddenbar"
|
"hiddenbar"
|
||||||
"localsend"
|
"localsend"
|
||||||
"calibre"
|
"calibre"
|
||||||
|
"linearmouse"
|
||||||
];
|
];
|
||||||
taps = [
|
taps = [
|
||||||
# Additional repositories if needed
|
# Additional repositories if needed
|
||||||
|
|
|
||||||
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