setup/scripts/mac.sh

30 lines
795 B
Bash
Raw Normal View History

2023-07-22 15:18:13 +02:00
#! /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
2023-11-14 18:56:53 +01:00
brew install --HEAD neovim
2023-07-22 15:18:13 +02:00
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