add scripts to configure macos
This commit is contained in:
parent
9dc5c7bba6
commit
7360824eab
3 changed files with 41 additions and 0 deletions
16
bin/macos-config/macos-dock.sh
Normal file
16
bin/macos-config/macos-dock.sh
Normal file
|
@ -0,0 +1,16 @@
|
|||
|
||||
defaults write com.apple.dock persistent-apps -array
|
||||
defaults write com.apple.dock orientation -string "left"
|
||||
defaults write com.apple.dock autohide -bool true
|
||||
|
||||
#Set icon size
|
||||
defaults write com.apple.dock tilesize -int 32
|
||||
|
||||
killall Dock
|
||||
|
||||
## Exporting the settings
|
||||
# defaults export com.apple.dock ~/dock-backup.plist
|
||||
|
||||
## Restoring
|
||||
# defaults import com.apple.dock ~/dock-backup.plist
|
||||
# killall Dock
|
24
bin/macos-config/macos-settings.sh
Normal file
24
bin/macos-config/macos-settings.sh
Normal file
|
@ -0,0 +1,24 @@
|
|||
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'
|
1
bin/macos-config/readme.md
Normal file
1
bin/macos-config/readme.md
Normal file
|
@ -0,0 +1 @@
|
|||
# Reinstall macOS
|
Loading…
Add table
Add a link
Reference in a new issue