Skip to content

Latest commit

 

History

History
585 lines (397 loc) · 11 KB

macOS-12.0-Monterey.md

File metadata and controls

585 lines (397 loc) · 11 KB

Setting Up macOS Monterey

System Preferences > General

  • Appearance: Auto
  • Sidebar icon size: Large

For Command + N and Command + T to always work as expected:

  • Prefer tabs: never

To restore full screen windows:

  • Uncheck: Close windows when quitting an app

System Preferences > Desktop & Screen Saver

  • Monterey Graphic: Dynamic

System Preferences > Dock & Menu Bar

  • Check: Magnification: Max

Sound:

  • Show in Menu Bar: always

Battery:

  • Check: Show Percentage

Spotlight:

  • Uncheck: Show in Menu Bar

System Preferences > Siri

  • Check: Enable Ask Siri
  • Check: Listen for "Hey Siri"
  • Uncheck: Show Siri in menu bar

System Preferences > Spotlight

Privacy:

  • Prevent Spotlight from searching these locations: tmp

System Preferences > Notifications

Focus > Do Not Disturb:

  • From 22:00 to 07:00

Options:

  • Check: Allow repeated calls

System Preferences > Internet accounts

Add email accounts.

System Preferences > Touch ID

  • Add right index, right thumb, and left index fingers.

System Preferences > User & Groups

Current User:

  • Drag & Drop a picture to change
  • Click the lock to make changes

Guest User:

  • Uncheck: Allow guests to login to this computer

Login Options:

  • Display login window as: List of users

System Preferences > Security & Privacy

General:

To quickly switch display back on without a password:

  • Require password 1 minute after sleep or screen saver begins

System Preferences > Network

Select the correct network and:

  • Automatically join this network

System Preferences > Printers & Scanners

Setup printers.

System Preferences > Keyboard

Keyboard:

  • Key Repeat: Fast
  • Delay Until Repeat: Short
  • Check: Turn keyboard backlight off after: 10 secs of inactivity
  • Touch Bar shows: Expanded COntrol Strip
  • Press Fn key to: Start Dictation (Press Fn Twice)
  • Press and hold Fn key to: Show F1, F2, etc. Keys
  • Expanded Control Strip: Default, remove Siri, Mission Control, Launchpad, add space before and after the items (i.e. make space for fingers)

Text:

  • Spelling: Set Up...

Input Sources:

  • U.S.
  • Canadian French - CSA
  • Ukrainian
  • Polish
  • Russian - PC

Shortcuts > Mission Control:

  • Uncheck: Show Desktop: F11

Shortcuts > App Shortcuts:

To avoid accidental quits from Safari:

Add shortcut:

  • Application: Safari
  • Menu Title: Quit Safari
  • Keyboard Shortcut: Option + Command + Q

Shortcuts > Function Keys:

  • Add: Terminal
  • Add: Visual Studio Code
  • Add: /System/Library/Frameworks/Tk.framework/Versions/Current/Resources/Wish.app
  • Add: /usr/local/Cellar/git/<VERSION>/share/git-gui/lib/Git Gui.app

Note: press Command + Shift + . to show hidden files in the open file dialog.

To use keyboard in dialogs:

  • Check: Use keyboard navigation to move focus between controls

Dictation:

  • Dictation: On
  • Language: Add Language...

System Preferences > Trackpad

Point & Click:

  • Check: Tap to click
  • Tracking speed: 3/4

System Preferences > Displays

Display:

  • Resolution: Scaled
  • Second Larger Text

Night Shift:

  • Schedule: Sunset to Sunrise

System Preferences > Time Machine

Options dialog:

  • Exclude these items from backups: ~/tmp

System Preferences > Language & Region

At the very end, remove all the languages but English

System Preferences > Sharing

To fix wireless headphones issue:

  • Uncheck: AirPlay Receiver

Desktop Preferences

  • Right Click > Use Stacks

Keep on Dock:

  • Calculator
  • Terminal

Remove from Dock:

  • Contacts
  • Apple TV
  • Podcasts
  • App Store
  • System Preferences
  • Keynote
  • Numbers
  • Pages

Finder Preferences

  • Right click on Documents > Add to Dock
  • Go > Home, File > Add to sidebar
  • Press Command + Shift + Period to show hidden files

Safari Preferences

Advanced:

For Responsive Design Mode (Control + Command + R):

  • Check: Show Develop menu in menu bar

To always show Tab Bar with pinned tabs:

  • Open a new window: Command + N
  • View > Always Show Tab Bar

To show link URL:

  • View > Show Status Bar

Dictionary Preferences

  • Uncheck: UK
  • Uncheck: UK Thesaurus
  • French
  • French-English
  • German
  • german-English
  • Polis-English
  • Russian
  • Russian-English

Wikipedia Languages:

  • English
  • Deutsch
  • Fraçais
  • Polski
  • Русский
  • Українська

Homebrew Cask Applications

brew install --cask google-chrome docker meld visual-studio-code blender gimp inkscape vlc

Casks for Development:

  • Docker: docker
  • Git GUI Merge Tool: meld
  • Visual Studio Code IDE (vscode): visual-studio-code

Graphics Casks:

  • Blender (3D graphics): blender
  • GIMP (raster graphics): gimp
  • Inkscape (vector graphics): inkscape
  • VLC Media Player: vlc

Homebrew Applications

brew install aspell coreutils gawk mc p7zip rg watch wget zsh-completions clang-format cloc git git-gui htop python rustup-init shfmt ffmpeg imagemagick potrace

General formulas:

  • Spell Checker: aspell
  • GNU File, Shell, and Text utilities: coreutils
  • GNU AWK: gawk
  • Midnight Commander (File Manager): mc
  • 7zip: p7zip
  • Rip Grep: rg
  • Execute a Program Periodically: watch
  • Network Downloader: wget
  • Completions for zsh: zsh-completions

Formulas for Development:

  • C/C++ Language Formatter: clang-format
  • Count Lines of Code: cloc
  • Version Control System: git
  • UI for the git: git-gui
  • Interactive Process Viewer: htop
  • Python Version 3: python
  • Rust Toolchain Installer: rustup-init
  • Shell Language Formatter: shfmt

Graphics formulas:

  • Video Convertor: ffmpeg
  • Batch Image Manipulation: imagemagick
  • Image Tracing Tool: potrace

Rust Language

brew install rustup-init
rustup-init --default-toolchain nightly
mkdir ~/.zfunc
rustup completions zsh > ~/.zfunc/_rustup
rustup completions zsh cargo > ~/.zfunc/_cargo

Nix

curl -L https://nixos.org/nix/install | sh -s -- --darwin-use-unencrypted-nix-store-volume

Visual Studio Code (vscode)

To install VS Code:

brew install visual-studio-code

Extensions to install:

  • C/C++
  • Code Spell Checker
  • crates
  • GitLens
  • JSON5 syntax
  • Hide Gitignored
  • Markdown All in One
  • Markdownlint
  • Nix Environment Selector
  • pre-commit-vscode
  • Prettier - Code formatter
  • Python
  • Remote - SSH
  • rust-analyzer
  • shell-format
  • TODO Highlight
  • vscode-proto3
  • YAML

Settings:

{
    "files.autoSave": "afterDelay",
    "files.autoSaveDelay": 100,
    "editor.rulers": [72, 100],
    "editor.fontSize": 15,
    "editor.renderWhitespace": "boundary",
    "editor.wordWrap": "on",
    "editor.minimap.size": "fill",
    "editor.minimap.showSlider": "always",
    "workbench.editor.tabCloseButton": "left",
    "zenMode.centerLayout": false,
    "rust-analyzer.lens.enable": false,
    "gitlens.codeLens.enabled": false,
    "editor.cursorWidth": 3,
}

VS Code also requires few Homebrew applications to be installed:

brew install buildifier clang-format git python shfmt

Terminal Preferences

General:

  • On startup, open new window with profile: Homebrew

Profiles:

  • Select Homebrew and click Default

Profiles > Homebrew > Text:

  • Font > Change... > SF Mono Regular > Size: 18pt

Profiles > Homebrew > Window:

  • Rows: 43

Profiles > Homebrew > Shell:

  • When the shell exits: Close if the shell exited cleanly

Profiles > Homebrew > Keyboard:

  • Use Option as Meta key
  • Double click F11 key to edit > Key: F1 Modifier: Shift
  • Repeat for F12-F20 keys

Terminal Profiles

File ~/.zshrc:

alias ll="ls -GFhla"
alias ls="ls -GFha"
alias mc="mc -d -S gotar"
alias mcedit="mcedit -d -S gotar"
alias top="top -o cpu" # for macOS

export PATH="${HOME}/bin:/usr/local/sbin:${PATH}"
export EDITOR="mcedit"

fpath+=/usr/local/share/zsh-completions
fpath+=~/.zfunc
autoload -Uz compinit
compinit

To fix zsh compinit: insecure directories message:

compaudit | xargs chmod g-w

Midnight Commander (mc) Preferences

Options > Layout:

  • Uncheck: Menubar visible
  • Uncheck: Hintbar visible

Editor > Options > General:

  • Uncheck: Confirm before saving

Git Preferences

git config --global user.name "Andriy Berestovskyy"
git config --global user.email "[email protected]"

SSH Preferences

  • Generate SSH key pair: ssh-keygen -C a@hostname

To use for some hosts different user name add to .ssh/config the following:

Host host.com
    User name

To use GitHub with two different accounts add to .ssh/config:

Host github-as-berestovskyy
  HostName github.com
  User git
  IdentityFile ~/.ssh/id_rsa.berestovskyy
  IdentitiesOnly yes
  AddKeysToAgent no

To add ssh keys to the Keychain:

  1. Run: ssh-add --apple-use-keychain

  2. Add to .ssh/config:

    Host *
      UseKeychain yes
      AddKeysToAgent yes
    

GitHub Preferences

  • Generate SSH key pair as described above.

  • Open github.com

  • Select Settings > SSH and GPG keys then New SSH key

  • Dump public key:

    cat ~/.ssh/id_rsa.pub
  • Paste the key into GitHub.

To use GitHub with two different accounts, use the following remote:

origin git@github-as-berestovskyy:berestovskyy/prefs.git

See SSH Preferences for adding github-as-berestovskyy into SSH.

Mail Preferences

Fonts & Colors:

  • All font sizes: 14

Composing:

  • Message Format: Plain Text

Symbolic Links Installation

cd && ln -s /usr/local
cd && ln -s /usr/local/etc
cd && ln -s Library/Fonts
cd && mkdir tmp
cd ~/Desktop && ln -s ../tmp
cd ~/Documents && ln -s ../tmp
cd ~/Downloads && ln -s ../tmp
sudo chmod g-w /usr/local/share

Preview Preferences

Images:

  • Open all files in one window

Messages Preferences

iMessage:

  • Enable messages in iCloud
  • Edit: You can be reached for messages at
  • Start new conversations from: [email protected]

FaceTime Preferences

Settings: