summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2023-06-20 21:55:28 +0200
committerGitHub <noreply@github.com>2023-06-20 21:55:28 +0200
commit050da23813967ce629bee06b549e534334112ccb (patch)
tree850e81a0b056d5d81ecd4a102ca130be773f8313
parent689aa795a171e81b208b210d2d81e9129f014366 (diff)
parentce785ccacf2723d3ffbcaf23e5a339b8c5ed88eb (diff)
Merge pull request #672 from sxyazi/pr-af01ed5d
Add `AppleScrollerPagingBehavior` option
-rw-r--r--modules/system/defaults/NSGlobalDomain.nix8
-rw-r--r--tests/system-defaults-write.nix2
2 files changed, 10 insertions, 0 deletions
diff --git a/modules/system/defaults/NSGlobalDomain.nix b/modules/system/defaults/NSGlobalDomain.nix
index 5888d7c..3fb8db0 100644
--- a/modules/system/defaults/NSGlobalDomain.nix
+++ b/modules/system/defaults/NSGlobalDomain.nix
@@ -88,6 +88,14 @@ in {
'';
};
+ system.defaults.NSGlobalDomain.AppleScrollerPagingBehavior = mkOption {
+ type = types.nullOr types.bool;
+ default = null;
+ description = ''
+ Jump to the spot that's clicked on the scroll bar. The default is false.
+ '';
+ };
+
system.defaults.NSGlobalDomain.NSAutomaticCapitalizationEnabled = mkOption {
type = types.nullOr types.bool;
default = null;
diff --git a/tests/system-defaults-write.nix b/tests/system-defaults-write.nix
index 06268d0..a075b68 100644
--- a/tests/system-defaults-write.nix
+++ b/tests/system-defaults-write.nix
@@ -10,6 +10,7 @@
system.defaults.NSGlobalDomain.ApplePressAndHoldEnabled = true;
system.defaults.NSGlobalDomain.AppleShowAllExtensions = true;
system.defaults.NSGlobalDomain.AppleShowScrollBars = "Always";
+ system.defaults.NSGlobalDomain.AppleScrollerPagingBehavior = true;
system.defaults.NSGlobalDomain.NSAutomaticCapitalizationEnabled = false;
system.defaults.NSGlobalDomain.NSAutomaticDashSubstitutionEnabled = false;
system.defaults.NSGlobalDomain.NSAutomaticPeriodSubstitutionEnabled = false;
@@ -79,6 +80,7 @@
grep "defaults write -g 'ApplePressAndHoldEnabled' -bool YES" ${config.out}/activate-user
grep "defaults write -g 'AppleShowAllExtensions' -bool YES" ${config.out}/activate-user
grep "defaults write -g 'AppleShowScrollBars' -string 'Always'" ${config.out}/activate-user
+ grep "defaults write -g 'AppleScrollerPagingBehavior' -bool YES" ${config.out}/activate-user
grep "defaults write -g 'NSAutomaticCapitalizationEnabled' -bool NO" ${config.out}/activate-user
grep "defaults write -g 'NSAutomaticDashSubstitutionEnabled' -bool NO" ${config.out}/activate-user
grep "defaults write -g 'NSAutomaticPeriodSubstitutionEnabled' -bool NO" ${config.out}/activate-user