Skip to content

Commit

Permalink
feat: document how to disable auto-boot when opening a MacBook lid
Browse files Browse the repository at this point in the history
  • Loading branch information
Okeanos committed Feb 1, 2025
1 parent f73909d commit f63d375
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,21 @@ msg "${GREEN}Configuring General UI/UX.${NOFORMAT}"

# Disable the sound effect / chime on boot / startup
# TODO find out how to automate "System Settings -> Sound -> Play sound on startup" setting instead
# See also https://discussions.apple.com/thread/253124369
#sudo nvram SystemAudioVolume=" "

# Change what happens when you open the lid of your MacBook
# See:
# - https://support.apple.com/en-us/120622
# - https://www.macrumors.com/2025/01/30/apple-keep-mac-turning-on-lid-open/
# - https://blog.fefe.de/?ts=99620db9
# %00 = To prevent startup when opening the lid or connecting to power
# %01 = To prevent startup only when opening the lid
# %02 = To prevent startup only when connecting to power
# Run sudo nvram -d BootPreference to reset to default behavior
#sudo nvram BootPreference=%01
#sudo nvramn AutoBoot=%00

# Disable transparency in the menu bar and elsewhere on Yosemite
# cannot be enabled anymore this way on macOS Ventura, see https://github.com/mathiasbynens/dotfiles/issues/1027
#defaults write com.apple.universalaccess reduceTransparency -bool true
Expand Down

0 comments on commit f63d375

Please sign in to comment.