1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00

Merge pull request #673 from sxyazi/pr-4df4da65

feat: add `AppleWindowTabbingMode` option
This commit is contained in:
Daiderd Jordan 2023-06-20 21:52:47 +02:00 committed by GitHub
commit 689aa795a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View file

@ -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 { system.defaults.NSGlobalDomain.NSNavPanelExpandedStateForSaveMode = mkOption {
type = types.nullOr types.bool; type = types.nullOr types.bool;
default = null; default = null;

View file

@ -18,6 +18,7 @@
system.defaults.NSGlobalDomain.NSAutomaticWindowAnimationsEnabled = false; system.defaults.NSGlobalDomain.NSAutomaticWindowAnimationsEnabled = false;
system.defaults.NSGlobalDomain.NSDisableAutomaticTermination = true; system.defaults.NSGlobalDomain.NSDisableAutomaticTermination = true;
system.defaults.NSGlobalDomain.NSDocumentSaveNewDocumentsToCloud = false; system.defaults.NSGlobalDomain.NSDocumentSaveNewDocumentsToCloud = false;
system.defaults.NSGlobalDomain.AppleWindowTabbingMode = "always";
system.defaults.NSGlobalDomain.NSNavPanelExpandedStateForSaveMode = true; system.defaults.NSGlobalDomain.NSNavPanelExpandedStateForSaveMode = true;
system.defaults.NSGlobalDomain.NSNavPanelExpandedStateForSaveMode2 = true; system.defaults.NSGlobalDomain.NSNavPanelExpandedStateForSaveMode2 = true;
system.defaults.NSGlobalDomain.NSTableViewDefaultSizeMode = 2; system.defaults.NSGlobalDomain.NSTableViewDefaultSizeMode = 2;
@ -86,6 +87,7 @@
grep "defaults write -g 'NSAutomaticWindowAnimationsEnabled' -bool NO" ${config.out}/activate-user 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 'NSDisableAutomaticTermination' -bool YES" ${config.out}/activate-user
grep "defaults write -g 'NSDocumentSaveNewDocumentsToCloud' -bool NO" ${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 'NSNavPanelExpandedStateForSaveMode' -bool YES" ${config.out}/activate-user
grep "defaults write -g 'NSNavPanelExpandedStateForSaveMode2' -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 grep "defaults write -g 'NSTableViewDefaultSizeMode' -int 2" ${config.out}/activate-user