Skip to content

Commit

Permalink
Merge pull request #894 from MoritzR/master
Browse files Browse the repository at this point in the history
defaults: Add options for dragOnGesture feature
  • Loading branch information
Enzime authored Mar 1, 2024
2 parents 283d597 + ad98aeb commit c2751db
Show file tree
Hide file tree
Showing 2 changed files with 10 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 @@ -225,6 +225,14 @@ in {
'';
};

system.defaults.NSGlobalDomain.NSWindowShouldDragOnGesture = mkOption {
type = types.nullOr types.bool;
default = null;
description = lib.mdDoc ''
Whether to enable moving window by holding anywhere on it like on Linux. The default is false.
'';
};

system.defaults.NSGlobalDomain.InitialKeyRepeat = mkOption {
type = types.nullOr types.int;
default = null;
Expand Down
2 changes: 2 additions & 0 deletions tests/system-defaults-write.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
system.defaults.NSGlobalDomain.NSUseAnimatedFocusRing = false;
system.defaults.NSGlobalDomain.NSScrollAnimationEnabled = true;
system.defaults.NSGlobalDomain.NSWindowResizeTime = 0.01;
system.defaults.NSGlobalDomain.NSWindowShouldDragOnGesture = true;
system.defaults.NSGlobalDomain.InitialKeyRepeat = 10;
system.defaults.NSGlobalDomain.KeyRepeat = 1;
system.defaults.NSGlobalDomain.PMPrintingExpandedStateForPrint = true;
Expand Down Expand Up @@ -99,6 +100,7 @@
grep "defaults write -g 'NSUseAnimatedFocusRing' -bool NO" ${config.out}/activate-user
grep "defaults write -g 'NSScrollAnimationEnabled' -bool YES" ${config.out}/activate-user
grep "defaults write -g 'NSWindowResizeTime' -float 0.01" ${config.out}/activate-user
grep "defaults write -g 'NSWindowShouldDragOnGesture' -bool YES" ${config.out}/activate-user
grep "defaults write -g 'InitialKeyRepeat' -int 10" ${config.out}/activate-user
grep "defaults write -g 'KeyRepeat' -int 1" ${config.out}/activate-user
grep "defaults write -g 'PMPrintingExpandedStateForPrint' -bool YES" ${config.out}/activate-user
Expand Down

0 comments on commit c2751db

Please sign in to comment.