Author: Malte Bublitz
Language/File type: Bash script
Description
Configure a more minimal UI on macOS - at least temporary.
Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
macOS_minimal_ui() {
# Back up current values
defaults_dock_autohide=$(defaults read com.apple.dock \"autohide\")
defaults_finder_createdesktop=$(defaults read com.apple.finder \"CreateDesktop\")
echo \"# Revert using:\"
echo \"defaults write com.apple.dock autohide -bool $defaults_dock_autohide && killall Dock\"
echo \"defaults write com.apple.finder CreateDesktop -bool $defaults_finder_createdesktop && killall Finder\"
# Autohide Dock
defaults write com.apple.dock \"autohide\" -bool \"true\" && killall Dock
# Hide desktop
defaults write com.apple.finder CreateDesktop -bool \"true\" && killall Finder
}