mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-13 20:30:02 +00:00
Merge pull request #452 from psm14/mouse-scaling
add mouse scaling system setting
This commit is contained in:
commit
adb8ac0453
1 changed files with 20 additions and 1 deletions
|
@ -2,7 +2,17 @@
|
|||
|
||||
with lib;
|
||||
|
||||
{
|
||||
let
|
||||
isFloat = x: isString x && builtins.match "^[+-]?([0-9]*[.])?[0-9]+$" x != null;
|
||||
|
||||
float = mkOptionType {
|
||||
name = "float";
|
||||
description = "float";
|
||||
check = isFloat;
|
||||
merge = options.mergeOneOption;
|
||||
};
|
||||
|
||||
in {
|
||||
options = {
|
||||
|
||||
system.defaults.".GlobalPreferences"."com.apple.sound.beep.sound" =
|
||||
|
@ -16,5 +26,14 @@ with lib;
|
|||
'';
|
||||
};
|
||||
|
||||
system.defaults.".GlobalPreferences"."com.apple.mouse.scaling" =
|
||||
mkOption {
|
||||
type = types.nullOr float;
|
||||
default = null;
|
||||
description = ''
|
||||
Sets the mouse tracking speed. Found in the "Mouse" section of
|
||||
"System Preferences". Set to -1 to disable mouse acceleration.
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue