macOS - Sequoia
https://ladedu.com/how-to-launch-apps-with-keyboard-shortcuts-on-a-mac
https://github.com/finestructure/Hummingbird
https://superuser.com/questions/53051/altclick-drag-window-resizing-on-a-mac-similar-to-x-windows
https://github.com/dmarcotte/easy-move-resiz
https://medium.com/@elhayefrat/how-to-fix-the-home-and-end-buttons-for-an-external-keyboard-in-mac-4da773a0d3a2
https://superuser.com/questions/1140403/utilize-extra-mouse-buttons-in-mac-os-x
https://sensible-side-buttons.archagon.net/
https://folivora.ai
Tasks
https://github.com/lynx44/Mac-to-Windows-Keymappings?tab=readme-ov-file#step1
Time machine backup
Keyboard Settings
Install Fonts
https://www.bresink.com/osx/0TinkerTool/download.php
Pending - Back/Forward on Mouse
defaults write com.apple.driver.AppleHIDMouse Button3 1
defaults write com.apple.driver.AppleHIDMouse Button4 1
Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Bash Config
which -a bash
sudo sh -c "echo $(which bash) >> /etc/shells"
chsh -s $(which bash)
nano .profile
## Bash Prompt ##
PS1='\[\033[01;32m\]\u@\H\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
## Exports ##
export CLICOLOR=1
eval "$(/opt/homebrew/bin/brew shellenv)"
Install Command Line Tools
xcode-select --install
xcodebuild -license
xcode-select -p
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
Install Homebrew Apps
## CLI ##
brew install --force bash brotli composer curl-openssl cweb ffmpeg git git-ftp maccy node@22 nvm parallel php [email protected] shfmt sshpass
## Applications ##
brew install --cask --force adobe-creative-cloud affinity-photo bettertouchtool bitwarden bluestacks cleanmymac cursor discord docker dropbox firefox google-chrome joplin keka kekaexternalhelper linearmouse mailspring messenger morgen obsidian postman sensiblesidebuttons simplenote slack smartgit spotify tableplus textmate tg-pro todoist visual-studio-code
## Remove Packages ##
brew uninstall flameshot
brew uninstall gyazo
brew uninstall hiddenbar
brew uninstall oscar
brew uninstall pulse-sms
brew uninstall zwift
## Fonts ##
brew install --cask --force font-hack font-merriweather font-nunito font-open-sans
## Steam ##
brew install --cask --force steam
## General ##
brew analytics off
parallel --will-cite
## Link Curl ##
brew unlink curl
brew link curl
## Link PHP ##
brew unlink php
brew link [email protected]
## Upgrade ##
brew upgrade
brew upgrade --cask --greedy
Docker
https://stackoverflow.com/questions/44084846/cannot-connect-to-the-docker-daemon-on-macos
ls -la /var/run/docker.sock
sudo rm -f /var/run/docker.sock
sudo ln -s ~/Library/Containers/com.docker.docker/Data/docker.raw.sock /var/run/docker.sock
Install Mac Ports
https://guide.macports.org/chunked/installing.html
https://www.macports.org/install.php
## Self Update ##
sudo port -v selfupdate
## App Store CLI ##
sudo port install mas
mas upgrade
Keyboard Fixes
sudo bash
mkdir -p ~/Library/KeyBindings
nano $HOME/Library/KeyBindings/DefaultKeyBinding.dict
{
/* Remap Home / End keys */
/* Home Button*/
"\UF729" = "moveToBeginningOfLine:";
/* End Button */
"\UF72B" = "moveToEndOfLine:";
/* Shift + Home Button */
"$\UF729" = "moveToBeginningOfLineAndModifySelection:";
/* Shift + End Button */
"$\UF72B" = "moveToEndOfLineAndModifySelection:";
/* Ctrl + Home Button */
"^\UF729" = "moveToBeginningOfDocument:";
/* Ctrl + End Button */
"^\UF72B" = "moveToEndOfDocument:";
/* Shift + Ctrl + Home Button */
"$^\UF729" = "moveToBeginningOfDocumentAndModifySelection:";
/* Shift + Ctrl + End Button*/
"$^\UF72B" = "moveToEndOfDocumentAndModifySelection:";
/* Cmd + Home Button */
"@\UF729" = "moveToBeginningOfDocument:";
/* Cmd + End Button */
"@\UF72B" = "moveToEndOfDocument:";
/* Shift + Cmd + Home Button */
"$@\UF729" = "moveToBeginningOfDocumentAndModifySelection:";
/* Shift + Cmd + End Button*/
"$@\UF72B" = "moveToEndOfDocumentAndModifySelection:";
}
Terminal Fixes
https://apple.stackexchange.com/questions/16135/remap-home-and-end-to-beginning-and-end-of-line
touch $HOME/.bash_profile && echo "export BASH_SILENCE_DEPRECATION_WARNING=1" >> $HOME/.bash_profile
Terminal's keybindings can be customized in Preferences > Profiles > Settings > Keyboard. \033OH moves to the beginning of a line and \033OF to the end of a line.
Show All Hidden Files
defaults write com.apple.finder AppleShowAllFiles -bool true
killall Finder
Status Bar Spacing Fix
## Read ##
defaults -currentHost read -globalDomain NSStatusItemSpacing
defaults -currentHost read -globalDomain NSStatusItemSelectionPadding
## Set ##
defaults -currentHost write -globalDomain NSStatusItemSpacing -int 6
defaults -currentHost write -globalDomain NSStatusItemSelectionPadding -int 12
## Revert/Remove ##
defaults -currentHost delete -globalDomain NSStatusItemSelectionPadding
defaults -currentHost delete -globalDomain NSStatusItemSpacing
ApplePersistence
ApplePersistence is a setting that can be enabled or disabled on macOS. When enabled, it logs certain information during startup. Disabling it can be done using Terminal commands
defaults write -g ApplePersistence -bool no
Disable MSI Drive
https://discussions.apple.com/docs/DOC-7942
https://www.reddit.com/r/Monitors/comments/v08itb/deactivate_osd_on_msi_monitor
diskutil info /Volumes/NO\ NAME
sudo vifs
## Disable MSI Drive ##
UUID=49D00007-FF63-36B9-9D69-6B3BE16866BB none auto noauto
## Read-only CPAP ##
LABEL=CPAP none auto ro
sudo automount -vc
24 Hour Clock on Login
sudo defaults write /Library/Preferences/.GlobalPreferences AppleLocale en_GB
sudo defaults write /var/root/Library/Preferences/.GlobalPreferences AppleLocale en_GB
Find and Remove Startup Items
https://www.macworld.com/article/221774/how-to-find-and-remove-mac-startup-items.html
## Agents ##
/Library/LaunchDaemons
/Library/LaunchAgents
/Users/coder/Library/LaunchAgents
## Cleanup ##
/Users/coder/Library/Preferences
/Users/coder/Library/Application Support
/Users/coder/Library/Containers
/Users/coder/Library/Group Containers
Cleanup
sudo find / -name .DS_Store -delete; killall Finder
Install Colima
https://github.com/abiosoft/colima/blob/main/README.md
https://apple.stackexchange.com/questions/373888/how-do-i-start-the-docker-daemon-on-macos
brew install colima docker
colima start
colima start --edit
brew services start colima
brew services stop colima
colima status
brew uninstall colima docker
ls -la /var/run/docker.sock
sudo rm -f /var/run/docker.sock
sudo ln -s /Users/coder/.colima/default/docker.sock /var/run/docker.sock