Skip to content

Commit

Permalink
👍 fix: add the status configure macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhongit committed Jun 21, 2024
1 parent 715f161 commit efaa91d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions macos/Preferences/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ if [[ -d "/Applications/KeepingYouAwake.app" ]]; then
defaults write com.knollsoft.Rectangle doubleClickTitleBar -int 3
defaults write com.knollsoft.Rectangle allowAnyShortcut -int 1
defaults write com.knollsoft.Rectangle alternateDefaultShortcuts -int 1
echo "Rectangle is configured"
fi

# ===================== keepyouawake ===================== #
Expand All @@ -109,6 +110,7 @@ if [[ -d "/Applications/KeepingYouAwake.app" ]]; then
defaults write info.marcel-dierkes.KeepingYouAwake "info.marcel-dierkes.KeepingYouAwake.BatteryCapacityThresholdEnabled" -int 1
defaults write info.marcel-dierkes.KeepingYouAwake "info.marcel-dierkes.KeepingYouAwake.LowPowerModeMonitoringEnabled" -int 1
killall KeepingYouAwake
echo "KeepingYouAwake is configured"
fi

# ===================== iTerm2 ===================== #
Expand Down Expand Up @@ -144,6 +146,7 @@ defaults write com.apple.screencapture showsClicks -int 1
defaults write com.apple.screencapture showCursor -int 1

defaults write com.apple.screencapture target clipboard # file, clipboard, preview, mail, printer
echo "ScreenShot is configured"

# ===================== TextEdit ===================== #
# TextEdit is a simple text editor included with macOS
Expand All @@ -152,6 +155,7 @@ defaults write com.apple.TextEdit RichText -int 0
defaults write com.apple.TextEdit PlainTextEncoding -int 4
defaults write com.apple.TextEdit PlainTextEncodingForWrite -int 4
defaults write com.apple.TextEdit ShowRuler -int 1
echo "TextEdit is configured"

# ===================== preferences ===================== #
# defaults read NSGlobalDomain
Expand All @@ -171,3 +175,4 @@ defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool true
defaults write NSGlobalDomain NSAutomaticCapitalizationEnabled -bool false
defaults write NSGlobalDomain NSCloseAlwaysConfirmsChanges -bool true
defaults write NSGlobalDomain NSSpellCheckerAutomaticallyIdentifiesLanguages -bool true
echo "Preferences is configured"

0 comments on commit efaa91d

Please sign in to comment.