setup/scripts/mac.sh
2023-07-22 15:18:13 +02:00

28 lines
767 B
Bash
Executable file

#! /bin/bash
#
setup_macos() {
ask "install macos casks? (y/n)"
[ "$RESP" != "n" ] && install_macos_casks
ask "configure macos? (y/n)"
[ "$RESP" != "n" ] && configure_macos
}
install_macos_casks() {
brew install --cask nextcloud spotify discord messenger openvpn-connect docker maccy geekbench sanesidebuttons amethyst scroll-reverser adguard
brew tap homebrew/cask-fonts && brew install --cask font-hack-nerd-font
}
configure_macos() {
defaults write com.apple.dock expose-animation-duration -float 0.1
defaults write -g InitialKeyRepeat -int 12
defaults write -g KeyRepeat -int 1
defaults write com.apple.Dock autohide-delay -float 0; killall Dock
defaults write -g com.apple.mouse.scaling -integer -1
}
[[ ! -z "$(which brew)" ]] && setup_macos