Skip to content

Instantly share code, notes, and snippets.

@d3v1an7
Last active December 9, 2024 03:34
Show Gist options
  • Save d3v1an7/ba0e1a530bfe27121de534c9d6a51213 to your computer and use it in GitHub Desktop.
Save d3v1an7/ba0e1a530bfe27121de534c9d6a51213 to your computer and use it in GitHub Desktop.
macos-fresh-config
---
brew:
brew:
- coreutils
- jq
- mas
- poetry
- python-yq
- shellcheck
- zsh-completions
cask:
- 1password
- brave-browser
- discord
- docker
- istat-menus
- kaleidoscope
- logitech-g-hub
- logseq
- muzzle
- signal
- spotify
- tailscale
- visual-studio-code
- vlc
mas:
- { name: Amphetamine, id: 937984704 }
- { name: Final Cut Pro, id: 424389933 }
- { name: Compressor, id: 424390742 }
settings:
- path: "~/Library/Preferences/.GlobalPreferences.plist"
values:
# System Preferences > General
# Appearance (image selection)
AppleInterfaceStyle: "Dark"
# System Preferences > Acessibility > Display > Cursor
# Shake mouse pointer to locate (checkbox)
CGDisableCursorLocationMagnification: True
# System Preferences > Keyboard
# Enable full keyboard access for all controls (e.g. enable Tab in modal dialogs)
AppleKeyboardUIMode: 3
# Disable smart quotes and dashes (hidden)
NSAutomaticQuoteSubstitutionEnabled: False
NSAutomaticDashSubstitutionEnabled: False
# Disable auto-correct (hidden)
NSAutomaticSpellingCorrectionEnabled: False
# Disable press-and-hold for keys in favor of key repeat (hidden)
ApplePressAndHoldEnabled: False
# Set a blazingly fast keyboard repeat rate (hidden)
KeyRepeat: 2
# System Preferences > Mouse
# Scroll direction: Natural (checkbox)
com.apple.swipescrolldirection: False
# Other hidden preferences
# Speed up window resize animations
NSWindowResizeTime: 0.001
# Expand save panel by default
NSNavPanelExpandedStateForSaveMode: True
NSNavPanelExpandedStateForSaveMode2: True
# Expand print panel by default
PMPrintingExpandedStateForPrint: True
PMPrintingExpandedStateForPrint2: True
# Save to disk (not to iCloud) by default
NSDocumentSaveNewDocumentsToCloud: False
# System Preferences > Dock
- path: "~/Library/Preferences/com.apple.dock.plist"
values:
# Size (slider)
tilesize: 43.0
# Magnification (slider)
largesize: 46.0
# Magnification (checkbox)
magnification: True
# Automatically hide and show the Dock (checkbox)
autohide: True
# Show recents in Dock (checkbox)
show-recents: False
# Delay (hidden)
autohide-delay: 0
# Semi transparent dock icons for hidden apps (hidden)
showhidden: True
# Remove all apps (user action)
persistent-apps: [{}]
# Add new apps (user action)
persistent-apps: [
{ "tile-data": { "file-data": { "_CFURLString": "file:///Applications/Brave%20Browser.app/", "_CFURLStringType": 15 } } },
{ "tile-data": { "file-data": { "_CFURLString": "file:///Applications/Spotify.app/", "_CFURLStringType": 15 } } },
{ "tile-data": { "file-data": { "_CFURLString": "file:///Applications/Visual%20Studio%20Code.app/", "_CFURLStringType": 15 } } }
]
# Clean up menu bar
- path: "~/Library/Preferences/ByHost/com.apple.controlcenter.UUID.plist"
values:
Display: 8
FocusModes: 8
NowPlaying: 8
ScreenMirroring: 8
Sound: 8
WiFi: 8
- path: "~/Library/Preferences/ByHost/com.apple.Spotlight.UUID.plist"
values:
MenuItemHidden: True
# We can't hide the clock in macOS 12.4, as it's now the button for the widget tray
# So let's just make it as small as possible, showing just the time
# We'll show the date with iStat
- path: "~/Library/Preferences/com.apple.menuextra.clock.plist"
values:
DateFormat: "h:mm a"
Show24Hour: False
ShowAMPM: True
ShowDate: 2
# System Preferences > Security & Privacy
- path: "~/Library/Preferences/com.apple.screensaver.plist"
values:
# Require password (checkbox)
askForPassword: 1
# Require password (dropdown)
askForPasswordDelay: 60
# System Preferences > Mouse
- path: "~/Library/Preferences/com.apple.driver.AppleBluetoothMultitouch.mouse.plist"
values:
# Secondary click (checkbox)
MouseButtonMode: TwoButton
# System Preferences > Trackpad
- path: "~/Library/Preferences/com.apple.driver.AppleBluetoothMultitouch.trackpad.plist"
values:
# Tap to click (checkbox)
Clicking: 1
# System Preferences > Time Machine
- path: "~/Library/Preferences/com.apple.TimeMachine.plist"
values:
# Prevent Time Machine from prompting to use new hard drives as backup volume
DoNotOfferNewDisksForBackup: True
# Finder
- path: "~/Library/Preferences/com.apple.finder.plist"
values:
# Show hidden files
AppleShowAllFiles: YES
# Show status bar
NewWindowTarget: PfHm
# Show status bar
ShowStatusBar: True
# Disable the warning when changing a file extension
FXEnableExtensionChangeWarning: False
# When performing a search, search the current folder by default
FXDefaultSearchScope: SCcf
# Use column view in all Finder windows by default
FXPreferredViewStyle: clmv
# Show status bar
FXPreferredGroupBy: Kind
# Allow text selection in Quick Look
QLEnableTextSelection: True
# Show icons for hard drives, servers, and removable media on the desktop
ShowHardDrivesOnDesktop: True
ShowMountedServersOnDesktop: True
# Arrange by
DesktopViewSettings.IconViewSettings.arrangeBy: grid
FK_StandardViewSettings.IconViewSettings.arrangeBy: grid
StandardViewSettings.IconViewSettings.arrangeBy: grid
# Grid spacing
DesktopViewSettings.IconViewSettings.gridSpacing: 40
FK_StandardViewSettings.IconViewSettings.gridSpacing: 40
StandardViewSettings.IconViewSettings.gridSpacing: 40
# Icon size
DesktopViewSettings.IconViewSettings.iconSize: 44
FK_StandardViewSettings.IconViewSettings.iconSize: 44
StandardViewSettings.IconViewSettings.iconSize: 44
# Label on bottom
DesktopViewSettings.IconViewSettings.labelOnBottom: False
FK_StandardViewSettings.IconViewSettings.labelOnBottom: False
StandardViewSettings.IconViewSettings.labelOnBottom: False
# Text size
DesktopViewSettings.IconViewSettings.textSize: 10
FK_StandardViewSettings.IconViewSettings.textSize: 10
StandardViewSettings.IconViewSettings.textSize: 10
- path: "~/Library/Preferences/com.apple.desktopservices.plist"
values:
# Avoid creating .DS_Store files on network volumes
DSDontWriteNetworkStores: True
system_name_update: true
power:
# System Preferences > Energy Saver
power_settings_all:
values:
disksleep: 10
womp: 0
autorestart: 0
halfdim: 0
sms: 0
# System Preferences > Energy Saver > Battery
power_settings_battery:
values:
displaysleep: 5
sleep: 10
powernap: 0
lessbright: 1
# System Preferences > Energy Saver > Power Adaptor
power_settings_charger:
values:
displaysleep: 10
sleep: 0
powernap: 1
lessbright: 0
fonts:
- "JetBrains Mono": https://github.com/ryanoasis/nerd-fonts/releases/download/v2.2.2/JetBrainsMono.zip
apps:
brave:
set_as_default: true
settings:
- path: "~/Library/Preferences/com.brave.Browser.plist"
values:
# Disable the all too sensitive backswipe on trackpads and Magic Mouse
AppleEnableSwipeNavigateWithScrolls: False
AppleEnableMouseSwipeNavigateWithScrolls: False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment