Skip to content

weibeld/setup-macos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

Setup: macOS

macOS

Checklist for setting a and personalising a new macOS installation.

Contents

1. Install updates

System updates:

  1. Go to System Settings → General → Software Update
  2. Install all available updates

App updates:

  1. Go to App Store → Updates
  2. If there are any updates, click on Update All

↑ Top

2. Disable iCloud Drive

  1. Go to System Settings → Apple ID → iCloud → Apps Using iCloud
  2. Set iCloud Drive to Off

Note: this prevents distracting options in file opening and saving dialogs.

↑ Top

3. Customise trackpad gestures

Enable tap to click:

  1. Go to System Preferences → Trackpad
  2. Make sure that the Point & Click tab is open
  3. Enable Tap to click

Disable opening of the Notification Centre when swiping left from the right edge of the trackpad with two fingers:

  1. Go to System Preferences → Trackpad
  2. Open the More Gestures tab
  3. Disable Notification Centre

Note: disabled to prevent accidential triggering when swiping/scrolling with two fingers.

Enable dragging of windows with three fingers:

  1. Go to System Preferences → Accessibility → Pointer Control → Trackpad Options...
  2. Enable Use trackpad for dragging
  3. Set Dragging style to Three-Finger Drag

↑ Top

4. Customise modifier keys

  1. Go to System Preferences → Keyboard → Keyboard Shortcuts... → Modifier Keys
  2. Change the below items to the following values:
    Item Value
    Caps Lock (⇪) key ⌃ Control
    Control (⌃) key ⇪ Caps Lock
    Option (⌥) key ⌘ Command
    Command (⌘) key ⌥ Option

Note: the above must be done for every connected keyboard (e.g the built-in keyboard and the external Magic Keyboard). Keyboards can be selected in the Select keyboard dropdown list.

↑ Top

5. Disable the 🌐 key

  1. Go to System Preferences → Keyboard
  2. Set Press 🌐 key to to Do Nothing

Note: this makes the 🌐 key act like a normal fn (function) key (e.g. for typing F1, F2, etc.). The 🌐 key functionality is not really needed as the input source can always be changed with Ctrl-Space.

↑ Top

6. Disable startup sound

  1. Go to System Settings → Sound
  2. Disable Play sound on startup

↑ Top

7. Disable power chime

  1. Execute the following:
    defaults write com.apple.PowerChime ChimeOnNoHardware -bool true
  2. Log out of macOS and log in again

Note: the power chime is a sound that plays when connecting a charging cable.

↑ Top

8. Disable floating screenshot thumbnails

  1. Press Cmd-Shift-5
  2. Open the Options dropdown list in the menu bar at the bottom of the screen
  3. Disable Show Floating Thumbnail

Note: this saves all screenshots immediately to the file system and prevents the floating thumbnail animation in the lower right corner of the screen.

↑ Top

9. Disable adaptive screen brightness

  1. Go to System Preferences → Displays
  2. Disable Automatically adjust brightness

↑ Top

10. Make Desktop icons snap to the grid

  1. Right-click on the Desktop background
  2. Click on Show View Options
  3. Set Sort By to Snap to Grid

↑ Top

11. Disable "Click wallpaper to reveal desktop"

  1. Go to System Preferences → Desktop & Dock
  2. Scroll down to the Desktop & Stage Manager section
  3. Open the Click wallpaper to reveal desktop dropdown list
  4. Select Only in Stage Manager

Note: this feature has been added and enabled by default by macOS 14 (Sonoma).

↑ Top

12. Customise menu bar

  1. Go to System Preferences → Control Centre
  2. Change the below items to the following values:
    Item Value
    Bluetooth Show in Menu Bar
    Focus Don't Show in Menu Bar
    Sound Always Show in Menu Bar
    Spotlight Don't Show in Menu Bar
  3. Under Battery, enable Show Percentage
  4. Rearrange the icons in the menu bar by holding ⌘ and dragging the icons with the mouse

↑ Top

13. Customise Dock

  1. Go to System Preferences → Desktop & Dock
  2. Enable Automatically hide and show the Dock
  3. Disable Show suggested and recent apps in Dock

↑ Top

14. Customise Spaces

Disable automatic rearrangement of Spaces:

  1. Go to System Preferences → Desktop & Dock
  2. Scroll down to the Mission Control section
  3. Disable Automatically rearrange Spaces based on most recent use

Create desired number of Spaces:

  1. Swipe up with four fingers to open Mission Control
  2. Move cursor to the top of the screen to reveal the Spaces strip
  3. Click on the + on the right side of the Spaces strip to add additional Spaces

↑ Top

15. Customise Finder

Customise sidebar:

  1. Go to Finder → Settings → Sidebar
  2. Enable the following items and disable all other items:
    Item Enabled
    Applications
    Desktop
    <Home>
    Hard disks
    External disks
    CDs, DVDs and iOS Devices

Disable hiding of filename extensions and filename extension warnings:

  1. Go to Finder → Settings → Advanced
  2. Enable Show all filename extensions
  3. Disable Show warning before changing an extension

Set default directory:

  1. Go to Finder → Settings → General
  2. Open the New Finder windows show dropdown list
  3. Select Desktop

Restrict search to current folder:

  1. Go to Finder → Settings → Advanced
  2. Open the When performing a search dropdown list
  3. Select Search the Current Folder

Show Path Bar and Status Bar:

  1. Go to Finder → View
  2. Enable Show Path Bar
  3. Enable Show Status Bar

↑ Top

16. Customise TextEdit

Set default window style and behaviour:

  1. Go to TextEdit → Settings → New Document
  2. Set Format to Plain text
  3. Set Width to 80
  4. Set Plain text font to Menlo Regular 12
  5. Disable all the options in the Options section

Disable markup rendering:

  1. Go to TextEdit → Settings → Open and Save
  2. Enable Display HTML files as HTML code instead of formatted text
  3. Enable Display RTF files as RTF code instead of formatted text

Disable automatic setting of filename extensions:

  1. Go to TextEdit → Settings → Open and Save
  2. Disable Add ".txt" extension to plain text files

↑ Top

17. Restore keyboard brightness keys on the physical keyboard

Note: this step is only necessary if the physical keyboard does not have keyboard brightness keys (usually bundled with the F5 and F6 keys), which is typically the case for newer (i.e. post Apple silicon) models.

  1. Save the following as ~/Library/LaunchAgents/com.local.KeyRemappings.plist:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
        <key>Label</key>
        <string>com.local.KeyRemapping</string>
        <key>ProgramArguments</key>
        <array>
            <string>/usr/bin/hidutil</string>
            <string>property</string>
            <string>--set</string>
            <!-- Keys:                                                           -->
            <!--   0xC000000CF:  Dictation                                       -->
            <!--   0x10000009B:  Focus                                           -->
            <!--   0xFF00000008: Keyboard brightness up                          -->
            <!--   0xFF00000009: Keyboard brightness down                        -->
            <string>{"UserKeyMapping":[
                {
                  "HIDKeyboardModifierMappingSrc": 0xC000000CF,
                  "HIDKeyboardModifierMappingDst": 0xFF00000009
                },
                {
                  "HIDKeyboardModifierMappingSrc": 0x10000009B,
                  "HIDKeyboardModifierMappingDst": 0xFF00000008
                }
            ]}</string>
        </array>
        <key>RunAtLoad</key>
        <true/>
    </dict>
    </plist>
  2. Log out of macOS and log in again

Traditonally, Apple keyboards had two keys for decreasing and increasing the keyboard brightness bundled with the F5 and F6 keys. However, newer models (roughly since the introduction of Apple silicon) have the Dictation and Focus keys at the place of these keyboard brightness keys.

The above launch agent script reverts this change and makes the Dictation and Focus keys act as keyboard brightness keys.

See also:

↑ Top

18. Install custom keyboard layout

GitHub Repo: Install

✅ See weibeld-setup/install-keyboard-layout

↑ Top

19. Install Xcode Command Line Tools

  1. Execute the following to launch the installation dialog:
    xcode-select --install
  2. Complete the installation through the installation dialog

↑ Top

20. Install Homebrew

bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Note: see instructions on brew.sh.

↑ Top

21. Install Homebrew formulas from Brewfile

GitHub Repo: Install

✅ See weibeld-setup/install-brewfile

↑ Top

22. Set Bash as the default shell

  1. Execute the following:
    echo "$HOMEBREW_PREFIX"/bin/bash | sudo tee -a /etc/shells >/dev/null
    chsh -s "$HOMEBREW_PREFIX"/bin/bash
    sudo chsh -s "$HOMEBREW_PREFIX"/bin/bash
  2. Quit and reopen the terminal application

Note: this sets the version of Bash that has been installed by Homebrew as the default shell. By default, macOS uses Zsh as the default shell.

↑ Top

23. Apply iTerm2 settings

GitHub Repo: Settings

✅ See weibeld-setup/settings-iterm2

↑ Top

24. Apply settings of optional tools

Android Studio

GitHub Repo: Settings

✅ See weibeld-setup/settings-android-studio

Visual Studio Code

GitHub Repo: Settings

✅ See weibeld-setup/settings-vscode

25. Install dotfiles

GitHub Repo: Install

✅ See weibeld-setup/install-dotfiles

↑ Top

26. TODO: Install sudoers file

GitHub Repo: Install

✅ See weibeld-setup/install-sudoers

TODO: adapt for macOS.

↑ Top

27. Install fonts

GitHub Repo: Install

✅ See weibeld-setup/install-fonts

↑ Top

28. Install eduroam

GitHub Repo: Install

✅ See weibeld-setup/install-eduroam

↑ Top

29. Configure Google Chrome

Set Chrome as the default web browser:

  1. Go to System Settings → Desktop & Dock
  2. Scroll down to the Widgets section
  3. Set Default web browser to Google Chrome

Set dowload directory:

  1. Go to Chrome → Settings → Downloads
  2. Set Location to Desktop

↑ Top

30. Configure Google Drive

  1. Launch Google Drive
  2. Skip all the options in the setup dialog
  3. Click on the Google Drive icon in the menu bar
  4. Click on the gear icon
  5. Go to Preferences → Google Drive
  6. Select Mirror files
  7. Click on Change folder location
  8. In the file opening dialog, create a new folder, such as ~/Desktop/Google Drive
  9. Click on Confirm location → Save
  10. Wait for the sync of the files from Google Drive to the local folder to complete

Note: this creates a local directory that is mirrored with Google Drive. That means, all the files from Google Drive will be downloaded to this directory, and any files that are locally added to this directory will be uploaded to Google Drive.

↑ Top

31. Configure Fluor

Grant permissions:

  1. Launch Fluor
  2. Do not enable any notifications
  3. When prompted, grant the necessary permissions for Fluor in System Settings

Enable start at login:

  1. Click on the Fluor icon in the menu bar
  2. Enable Start Fluor at login

Set trigger:

  1. Click on the Fluor icon in the menu bar
  2. In the Trigger section, enable the rightmost option:
    Fluor trigger

Note: this trigger option allows changing the Fluor mode (i.e. locking and unlocking the function keys) by simply pressing the fn key.

↑ Top

About

Checklist for setting up macOS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Generated from weibeld/template-setup