Skip to content

Commit

Permalink
Merge pull request #958 from kamushadenes/master
Browse files Browse the repository at this point in the history
Add support for trackpad force click
  • Loading branch information
Enzime authored May 29, 2024
2 parents 0bea822 + 9639c55 commit c0d5b8c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/system/defaults/NSGlobalDomain.nix
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,14 @@ in {
'';
};

system.defaults.NSGlobalDomain."com.apple.trackpad.forceClick" = mkOption {
type = types.nullOr types.bool;
default = null;
description = ''
Whether to enable trackpad force click.
'';
};

system.defaults.NSGlobalDomain."com.apple.springing.enabled" = mkOption {
type = types.nullOr types.bool;
default = null;
Expand Down
9 changes: 9 additions & 0 deletions modules/system/defaults/trackpad.nix
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,14 @@ with lib;
'';
};

system.defaults.trackpad.TrackpadThreeFingerTapGesture = mkOption {
type = types.nullOr (types.enum [ 0 2 ]);
default = null;
description = ''
0 to disable three finger tap, 2 to trigger Look up & data detectors.
The default is 2.
'';
};

};
}

0 comments on commit c0d5b8c

Please sign in to comment.