Skip to content

appearance

System Settings > Appearance > Accent Color

Option Module: home-manager

Option Path: applications.systemSettings.appearance.accentColor

Option Value Description: null or one of "Blue", "Graphite", "Green", "Multicolor", "Orange", "Pink", "Purple", "Red", "Yellow", "unset"

Blue:

Terminal window
/usr/bin/defaults write ~/Library/Preferences/ByHost/.GlobalPreferences AppleAccentColor -int "4" 2>/dev/null || true && \
/usr/bin/notifyutil -p AppleColorPreferencesChangedNotification 2>/dev/null || true && \
/usr/bin/notifyutil -p AppleAquaColorVariantChanged 2>/dev/null || true

Graphite:

Terminal window
/usr/bin/defaults write ~/Library/Preferences/ByHost/.GlobalPreferences AppleAccentColor -int "-1" 2>/dev/null || true && \
/usr/bin/notifyutil -p AppleColorPreferencesChangedNotification 2>/dev/null || true && \
/usr/bin/notifyutil -p AppleAquaColorVariantChanged 2>/dev/null || true

Green:

Terminal window
/usr/bin/defaults write ~/Library/Preferences/ByHost/.GlobalPreferences AppleAccentColor -int "3" 2>/dev/null || true && \
/usr/bin/notifyutil -p AppleColorPreferencesChangedNotification 2>/dev/null || true && \
/usr/bin/notifyutil -p AppleAquaColorVariantChanged 2>/dev/null || true

Multicolor:

Terminal window
/usr/bin/defaults write ~/Library/Preferences/ByHost/.GlobalPreferences AppleAccentColor -int "7" 2>/dev/null || true && \
/usr/bin/notifyutil -p AppleColorPreferencesChangedNotification 2>/dev/null || true && \
/usr/bin/notifyutil -p AppleAquaColorVariantChanged 2>/dev/null || true

Orange:

Terminal window
/usr/bin/defaults write ~/Library/Preferences/ByHost/.GlobalPreferences AppleAccentColor -int "1" 2>/dev/null || true && \
/usr/bin/notifyutil -p AppleColorPreferencesChangedNotification 2>/dev/null || true && \
/usr/bin/notifyutil -p AppleAquaColorVariantChanged 2>/dev/null || true

Pink:

Terminal window
/usr/bin/defaults write ~/Library/Preferences/ByHost/.GlobalPreferences AppleAccentColor -int "6" 2>/dev/null || true && \
/usr/bin/notifyutil -p AppleColorPreferencesChangedNotification 2>/dev/null || true && \
/usr/bin/notifyutil -p AppleAquaColorVariantChanged 2>/dev/null || true

Purple:

Terminal window
/usr/bin/defaults write ~/Library/Preferences/ByHost/.GlobalPreferences AppleAccentColor -int "5" 2>/dev/null || true && \
/usr/bin/notifyutil -p AppleColorPreferencesChangedNotification 2>/dev/null || true && \
/usr/bin/notifyutil -p AppleAquaColorVariantChanged 2>/dev/null || true

Red:

Terminal window
/usr/bin/defaults write ~/Library/Preferences/ByHost/.GlobalPreferences AppleAccentColor -int "0" 2>/dev/null || true && \
/usr/bin/notifyutil -p AppleColorPreferencesChangedNotification 2>/dev/null || true && \
/usr/bin/notifyutil -p AppleAquaColorVariantChanged 2>/dev/null || true

Yellow:

Terminal window
/usr/bin/defaults write ~/Library/Preferences/ByHost/.GlobalPreferences AppleAccentColor -int "2" 2>/dev/null || true && \
/usr/bin/notifyutil -p AppleColorPreferencesChangedNotification 2>/dev/null || true && \
/usr/bin/notifyutil -p AppleAquaColorVariantChanged 2>/dev/null || true

unset:

Terminal window
/usr/bin/defaults delete ~/Library/Preferences/ByHost/.GlobalPreferences AppleAccentColor 2>/dev/null || true && \
/usr/bin/notifyutil -p AppleColorPreferencesChangedNotification 2>/dev/null || true && \
/usr/bin/notifyutil -p AppleAquaColorVariantChanged 2>/dev/null || true

System Settings > Appearance > Allow wallpaper tinting in windows

Option Module: home-manager

Option Path: applications.systemSettings.appearance.allowWallpaperTintingInWindows

Option Value Description: null or boolean or value "unset" (singular enum)

false:

Terminal window
/usr/bin/defaults write ~/Library/Preferences/ByHost/.GlobalPreferences AppleReduceDesktopTinting -bool "true" 2>/dev/null || true

true:

Terminal window
/usr/bin/defaults write ~/Library/Preferences/ByHost/.GlobalPreferences AppleReduceDesktopTinting -bool "false" 2>/dev/null || true

unset:

Terminal window
/usr/bin/defaults delete ~/Library/Preferences/ByHost/.GlobalPreferences AppleReduceDesktopTinting 2>/dev/null || true

System Settings > Appearance > Appearance

Option Module: home-manager

Option Path: applications.systemSettings.appearance.appearance

Option Value Description: null or one of "Auto", "Dark", "Light", "unset"

Auto:

Terminal window
/usr/bin/defaults write NSGlobalDomain AppleInterfaceStyleSwitchesAutomatically -bool "true" 2>/dev/null || true

Dark:

Terminal window
/usr/bin/osascript -e 'tell application "System Events" to tell appearance preferences to set dark mode to true' 2>/dev/null || true

Light:

Terminal window
/usr/bin/osascript -e 'tell application "System Events" to tell appearance preferences to set dark mode to false' 2>/dev/null || true

unset:

Terminal window
/usr/bin/defaults delete NSGlobalDomain AppleInterfaceStyleSwitchesAutomatically 2>/dev/null || true && \
/usr/bin/defaults delete ~/Library/Preferences/ByHost/.GlobalPreferences AppleInterfaceStyle 2>/dev/null || true

System Settings > Appearance > Click in the scroll bar to

Option Module: home-manager

Option Path: applications.systemSettings.appearance.clickInTheScrollBarTo

Option Value Description: null or one of "Jump to the next page", "Jump to the spot that's clicked", "unset"

Jump to the next page:

Terminal window
/usr/bin/defaults write ~/Library/Preferences/ByHost/.GlobalPreferences AppleScrollerPagingBehavior -int "0" 2>/dev/null || true

Jump to the spot that's clicked:

Terminal window
/usr/bin/defaults write ~/Library/Preferences/ByHost/.GlobalPreferences AppleScrollerPagingBehavior -int "1" 2>/dev/null || true

unset:

Terminal window
/usr/bin/defaults delete ~/Library/Preferences/ByHost/.GlobalPreferences AppleScrollerPagingBehavior 2>/dev/null || true

System Settings > Appearance > Show scroll bars

Option Module: home-manager

Option Path: applications.systemSettings.appearance.showScrollBars

Option Value Description: null or one of "Always", "Automatically based on mouse or trackpad", "When scrolling", "unset"

Always:

Terminal window
/usr/bin/defaults write ~/Library/Preferences/ByHost/.GlobalPreferences AppleShowScrollBars -string "Always" 2>/dev/null || true

Automatically based on mouse or trackpad:

Terminal window
/usr/bin/defaults write ~/Library/Preferences/ByHost/.GlobalPreferences AppleShowScrollBars -string "Automatic" 2>/dev/null || true

When scrolling:

Terminal window
/usr/bin/defaults write ~/Library/Preferences/ByHost/.GlobalPreferences AppleShowScrollBars -string "WhenScrolling" 2>/dev/null || true

unset:

Terminal window
/usr/bin/defaults delete ~/Library/Preferences/ByHost/.GlobalPreferences AppleShowScrollBars 2>/dev/null || true

System Settings > Appearance > Sidebar Icon Size

Option Module: home-manager

Option Path: applications.systemSettings.appearance.sidebarIconSize

Option Value Description: null or one of "Large", "Medium", "Small", "unset"

Large:

Terminal window
/usr/bin/defaults write ~/Library/Preferences/ByHost/.GlobalPreferences NSTableViewDefaultSizeMode -int "3" 2>/dev/null || true

Medium:

Terminal window
/usr/bin/defaults write ~/Library/Preferences/ByHost/.GlobalPreferences NSTableViewDefaultSizeMode -int "2" 2>/dev/null || true

Small:

Terminal window
/usr/bin/defaults write ~/Library/Preferences/ByHost/.GlobalPreferences NSTableViewDefaultSizeMode -int "1" 2>/dev/null || true

unset:

Terminal window
/usr/bin/defaults delete ~/Library/Preferences/ByHost/.GlobalPreferences NSTableViewDefaultSizeMode 2>/dev/null || true