-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui_and_ux.sh
executable file
·80 lines (55 loc) · 3.26 KB
/
ui_and_ux.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#!/bin/bash
cd "$(dirname "${BASH_SOURCE[0]}")" \
&& . "../../utils.sh"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
print_in_purple "\n UI & UX\n\n"
execute "defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true" \
defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true" \
"Avoid creating '.DS_Store' files on network or USB volumes"
execute "defaults write com.apple.menuextra.battery ShowPercent -string 'NO'" \
"Hide battery percentage from the menu bar"
execute "defaults write com.apple.CrashReporter UseUNC 1" \
"Make crash reports appear as notifications"
execute "defaults write com.apple.LaunchServices LSQuarantine -bool false" \
"Disable 'Are you sure you want to open this application?' dialog"
execute "defaults write com.apple.print.PrintingPrefs 'Quit When Finished' -bool true" \
"Automatically quit the printer app once the print jobs are completed"
execute "defaults write com.apple.screencapture disable-shadow -bool true" \
"Disable shadow in screenshots"
execute "defaults write com.apple.screencapture location -string '$HOME/Desktop'" \
"Save screenshots to the Desktop"
execute "defaults write com.apple.screencapture type -string 'png'" \
"Save screenshots as PNGs"
execute "defaults write com.apple.screensaver askForPassword -int 1 && \
defaults write com.apple.screensaver askForPasswordDelay -int 0"\
"Require password immediately after into sleep or screen saver mode"
execute "defaults write -g AppleFontSmoothing -int 2" \
"Enable subpixel font rendering on non-Apple LCDs"
execute "defaults write NSGlobalDomain AppleShowScrollBars -string 'WhenScrolling'" \
"Show scrollbars while scrolling"
execute "defaults write -g NSDisableAutomaticTermination -bool true" \
"Disable automatic termination of inactive apps"
execute "defaults write -g NSNavPanelExpandedStateForSaveMode -bool true" \
"Expand save panel by default"
execute "defaults write NSGlobalDomain NSTableViewDefaultSizeMode -int 1" \
"Set sidebar icon size to small"
execute "defaults write -g NSUseAnimatedFocusRing -bool false" \
"Disable the over-the-top focus ring animation"
execute "defaults write com.apple.systempreferences NSQuitAlwaysKeepsWindows -bool false" \
"Disable resume system-wide"
execute "defaults write -g PMPrintingExpandedStateForPrint -bool true" \
"Expand print panel by default"
execute "sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server NetBIOSName -string 'steve' && \
sudo scutil --set ComputerName 'steve' && \
sudo scutil --set HostName 'steve' && \
sudo scutil --set LocalHostName 'steve'" \
"Set computer name"
execute "sudo systemsetup -setrestartfreeze on" \
"Restart automatically if the computer freezes"
execute "sudo defaults write /Library/Preferences/com.apple.Bluetooth.plist ControllerPowerState -int 1 && \
sudo launchctl unload /System/Library/LaunchDaemons/com.apple.blued.plist && \
sudo launchctl load /System/Library/LaunchDaemons/com.apple.blued.plist" \
"Turn Bluetooth on"
execute "sudo pmset -a standbydelay 86400" \
"Set standby delay to 24 hours (default is 1 hour)"
killall "SystemUIServer" &> /dev/null