Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional MacStrap Default Improvements #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 36 additions & 8 deletions custom-scripts/post-install-4-osx-defaults.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,42 @@ case $applyConfiguration in
defaults write NSGlobalDomain AppleHighlightColor -string "0.847059 0.847059 0.862745"
defaults write NSGlobalDomain AppleInterfaceStyle -string Dark

printf "\t- Disable system sound effects\n"
defaults write NSGlobalDomain "com.apple.sound.uiaudio.enabled" -int 0
defaults write NSGlobalDomain "com.apple.sound.beep.volume" -int 0
defaults write NSGlobalDomain "com.apple.sound.beep.flash" -int 0

printf "\t- Change date format to 24h format\n"
defaults write com.apple.menuextra.clock DateFormat -string "d MMM HH:mm:ss"
defaults write -globalDomain AppleICUForce24HourTime -int 1
printf "\t\033[1mPlease select if you'd like to disable system sounds\033[0m:\n"
printf "\t\t[1] Disable System Sounds\n"
printf "\t\t[2] Leave default MacOS behavior\n"
echo
printf "\t\tEnter your decision: "
systemsoundselection=$(readInput "1")
case $systemsoundselection in
"1")
printf "\t- Disable system sound effects\n"
defaults write NSGlobalDomain "com.apple.sound.uiaudio.enabled" -int 0
defaults write NSGlobalDomain "com.apple.sound.beep.volume" -int 0
defaults write NSGlobalDomain "com.apple.sound.beep.flash" -int 0
;;
*)
printf "\t- Leaving default MacOS behavior\n"
;;
esac

printf "\t\033[1mPlease select your desired system clock time direction\033[0m:\n"
printf "\t\t[1] Set system clock to to 24 hour clock\n"
printf "\t\t[2] Leave default MacOS behavior\n"
echo
printf "\t\tEnter your decision: "
timeselection=$(readInput "1")
echo

case $timeselection in
"1")
printf "\t- Change date format to 24h format\n"
defaults write com.apple.menuextra.clock DateFormat -string "d MMM HH:mm:ss"
defaults write -globalDomain AppleICUForce24HourTime -int 1
;;
*)
printf "\t- Leaving default MacOS behavior\n"
;;
esac

printf "\t- Show battery percentage in menu bar\n"
defaults write com.apple.menuextra.battery ShowPercent -bool true
Expand Down
2 changes: 2 additions & 0 deletions macstrap.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ binaries=(
grep
graphviz
helm
hub
k3d
libomp
maven
Expand All @@ -51,6 +52,7 @@ apps=(
carbon-copy-cloner
cyberduck
docker
font-fira-code-nerd-font
font-jetbrains-mono-nerd-font
font-lato
google-chrome
Expand Down