mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-15 17:51:01 +00:00
Merge pull request #673 from sxyazi/pr-4df4da65
feat: add `AppleWindowTabbingMode` option
This commit is contained in:
commit
689aa795a1
2 changed files with 10 additions and 0 deletions
|
@ -152,6 +152,14 @@ in {
|
|||
'';
|
||||
};
|
||||
|
||||
system.defaults.NSGlobalDomain.AppleWindowTabbingMode = mkOption {
|
||||
type = types.nullOr (types.enum [ "manual" "always" "fullscreen" ]);
|
||||
default = null;
|
||||
description = ''
|
||||
Sets the window tabbing when opening a new document: 'manual', 'always', or 'fullscreen'. The default is 'fullscreen'.
|
||||
'';
|
||||
};
|
||||
|
||||
system.defaults.NSGlobalDomain.NSNavPanelExpandedStateForSaveMode = mkOption {
|
||||
type = types.nullOr types.bool;
|
||||
default = null;
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
system.defaults.NSGlobalDomain.NSAutomaticWindowAnimationsEnabled = false;
|
||||
system.defaults.NSGlobalDomain.NSDisableAutomaticTermination = true;
|
||||
system.defaults.NSGlobalDomain.NSDocumentSaveNewDocumentsToCloud = false;
|
||||
system.defaults.NSGlobalDomain.AppleWindowTabbingMode = "always";
|
||||
system.defaults.NSGlobalDomain.NSNavPanelExpandedStateForSaveMode = true;
|
||||
system.defaults.NSGlobalDomain.NSNavPanelExpandedStateForSaveMode2 = true;
|
||||
system.defaults.NSGlobalDomain.NSTableViewDefaultSizeMode = 2;
|
||||
|
@ -86,6 +87,7 @@
|
|||
grep "defaults write -g 'NSAutomaticWindowAnimationsEnabled' -bool NO" ${config.out}/activate-user
|
||||
grep "defaults write -g 'NSDisableAutomaticTermination' -bool YES" ${config.out}/activate-user
|
||||
grep "defaults write -g 'NSDocumentSaveNewDocumentsToCloud' -bool NO" ${config.out}/activate-user
|
||||
grep "defaults write -g 'AppleWindowTabbingMode' -string 'always'" ${config.out}/activate-user
|
||||
grep "defaults write -g 'NSNavPanelExpandedStateForSaveMode' -bool YES" ${config.out}/activate-user
|
||||
grep "defaults write -g 'NSNavPanelExpandedStateForSaveMode2' -bool YES" ${config.out}/activate-user
|
||||
grep "defaults write -g 'NSTableViewDefaultSizeMode' -int 2" ${config.out}/activate-user
|
||||
|
|
Loading…
Reference in a new issue