mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-05 08:17:01 +00:00
defaults: Add options for dragOnGesture feature
This is just a rebased version of https://github.com/LnL7/nix-darwin/pull/513 Credit to @2gn
This commit is contained in:
parent
283d59778e
commit
2ffb75f942
2 changed files with 10 additions and 0 deletions
|
@ -225,6 +225,14 @@ in {
|
|||
'';
|
||||
};
|
||||
|
||||
system.defaults.NSGlobalDomain.NSWindowShouldDragOnGesture = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
description = ''
|
||||
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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue