environment/bin/macos-config/macos-settings.sh

24 lines
912 B
Bash

defaults write com.apple.menuextra.clock ShowSeconds -bool true
defaults write NSGlobalDomain KeyRepeat -int 2 # 2 min -120 max
defaults write NSGlobalDomain InitialKeyRepeat -int 15
## If when holding a key you get the accent menu (e.g., “é”, “ö”) instead of repeats:
# defaults write -g ApplePressAndHoldEnabled -bool false
## Control Center Settings
#18 → Show in Menu Bar
#2 → Show in Control Center only
#8 → Don't show at all
# defaults write com.apple.controlcenter Battery -int 18
defaults write com.apple.controlcenter Bluetooth -int 18
defaults write com.apple.controlcenter Sound -int 18
killall ControlCenter
killall SystemUIServer
osascript -e 'tell application "System Events" to tell appearance preferences to set dark mode to true'
## Toggling the theme mode
#osascript -e 'tell application "System Events" to tell appearance preferences to set dark mode to not dark mode'