💾 Archived View for noa.smol.pub › 1696271853 captured on 2023-11-04 at 11:07:00. Gemini links have been rewritten to link to archived content

View Raw

More Information

➡️ Next capture (2024-06-20)

-=-=-=-=-=-=-

Better settings on macOS

Macos is not the best operating system i have ever come across, but i do appreciate that i can access a lot of settings graphically, and also manipulate them all by the command line. Here's what i have set so far.

No dock

defaults write com.apple.dock autohide -bool True
defaults write com.apple.dock autohide-delay -float 666
defaults write com.apple.dock no-bouncing -bool True
killall Dock

The first line makes the dock hide by default, but if you enable this, you can still easily access it by putting the mouse on the bottom edge of the screen. The next line means you need to have it there for a long time (six hundred and sixty six seconds) before it pops up, making this pretty much a non issue. The third line stops programs which want your attention from making their dock icon bounce. And the final line restarts the dock so things take immediate effect.

I can still access the dock whenever you want with command+option+d.

Also, the dock always appears in the mission control view. My preference is for it to act more like the windows task bar and show only the open applications. While we're at it, do a scale effect rather than the squeezy one:

defaults write com.apple.dock "static-only" -bool "true"
defaults write com.apple.dock mineffect -string "scale"
killall Dock

Scrollbars

I don't want them hidden!

defaults write 'Apple Global Domain' AppleShowScrollbars -string Always

Safari

I prefer to not pretend that urls don't exist, even if i think that maybe they're not the best thing ever. Also don't phone home to apple please

defaults write com.apple.Safari "ShowFullURLInSmartSearchField" -bool "true"
defaults write com.apple.Safari UniversalSearchEnabled -bool false
defaults write com.apple.Safari SuppressSearchSuggestions -bool true
defaults write com.apple.Safari HomePage -string "about:blank"
defaults write com.apple.Safari IncludeInternalDebugMenu -bool true
defaults write com.apple.Safari FindOnPageMatchesWordStartsOnly -bool false
defaults write com.apple.Safari IncludeDevelopMenu -bool true
defaults write com.apple.Safari WebKitDeveloperExtrasEnabledPreferenceKey -bool true
defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2DeveloperExtrasEnabled -bool true
defaults write NSGlobalDomain WebKitDeveloperExtras -bool true
defaults write com.apple.Safari WebContinuousSpellCheckingEnabled -bool true
defaults write com.apple.Safari WebAutomaticSpellingCorrectionEnabled -bool false
defaults write com.apple.Safari AutoFillFromAddressBook -bool false
defaults write com.apple.Safari AutoFillCreditCardData -bool false
defaults write com.apple.Safari AutoFillMiscellaneousForms -bool false
killall Safari

There is also a setting for autofilling passwords, but i quite appreciate that:

defaults write com.apple.Safari AutoFillPasswords -bool false

Finder

defaults write NSGlobalDomain "AppleShowAllExtensions" -bool "true"
defaults write com.apple.finder "AppleShowAllFiles" -bool "true"
defaults write com.apple.finder "ShowPathbar" -bool "true"
defaults write com.apple.finder ShowStatusBar -bool "true"
defaults write com.apple.finder _FXShowPosixPathInTitle -bool true
defaults write com.apple.finder "FXPreferredViewStyle" -string "Nlsv"
defaults write com.apple.finder "_FXSortFoldersFirst" -bool "true"
defaults write com.apple.finder "FXDefaultSearchScope" -string "SCcf"
defaults write com.apple.finder "FXEnableExtensionChangeWarning" -bool "false"
defaults write NSGlobalDomain "NSDocumentSaveNewDocumentsToCloud" -bool "true"
defaults write com.apple.finder NewWindowTarget -string "PfLo"
defaults write com.apple.finder NewWindowTargetPath -string "file://${HOME}/"
killall Finder

I think most of these are self explanatory. The preferred view file secret incantation is list view. Icon view is called "icnv". The default search scope is the current folder. For the whole computer, use "SCev", but i can use spotlight for that.

Desktop

Show everything on the desktop. Also organise folders first.

defaults write com.apple.finder "_FXSortFoldersFirstOnDesktop" -bool "true"
defaults write com.apple.finder "CreateDesktop" -bool "true"
defaults write com.apple.finder "ShowHardDrivesOnDesktop" -bool "true"
defaults write com.apple.finder "ShowExternalHardDrivesOnDesktop" -bool "true"
defaults write com.apple.finder "ShowRemovableMediaOnDesktop" -bool "true"
defaults write com.apple.finder "ShowMountedServersOnDesktop" -bool "true"
killall Finder

Autocorrect

defaults write NSGlobalDomain NSAutomaticCapitalizationEnabled -bool false
defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false
defaults write NSGlobalDomain NSAutomaticPeriodSubstitutionEnabled -bool false
defaults write NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled -bool false
defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false

Mail

Enable command+enter to send and also show threading.

defaults write com.apple.mail NSUserKeyEquivalents -dict-add "Send" "@\U21a9"
defaults write com.apple.mail DraftsViewerAttributes -dict-add "DisplayInThreadedMode" -string "yes"
defaults write com.apple.mail DraftsViewerAttributes -dict-add "SortedDescending" -string "yes"
defaults write com.apple.mail DraftsViewerAttributes -dict-add "SortOrder" -string "received-date"

Keyboard

Make sure the accent menu pops up on key hold:

defaults write NSGlobalDomain "ApplePressAndHoldEnabled" -bool "true"

Make key repeats faster (even though i have accents enabled above):

defaults write NSGlobalDomain KeyRepeat -int 2
defaults write NSGlobalDomain InitialKeyRepeat -int 30

Other stuff

Ensure autosaving is enabled:

defaults write NSGlobalDomain "NSCloseAlwaysConfirmsChanges" -bool "true"

Allow help windows to float normally:

defaults write com.apple.helpviewer "DevMode" -bool "true"

Don't rearrange spaces:

defaults write com.apple.dock mru-spaces -bool false

Disable pinch to launchpad:

defaults write com.apple.dock showLaunchpadGestureEnabled -int 0

Credits

So much of this comes from the wonderful macos defaults website. Also Mathias Bynen's dotfiles.

https://macos-defaults.com

https://github.com/mathiasbynens/dotfiles

go to home