1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-13 20:30:02 +00:00

Merge pull request #894 from MoritzR/master

defaults: Add options for dragOnGesture feature
This commit is contained in:
Michael Hoang 2024-03-01 16:24:09 +11:00 committed by GitHub
commit c2751db910
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 0 deletions

View file

@ -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;

View file

@ -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;
@ -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