MacOS Tweak via Terminal

MacOS atau dulu dikenal dengan OSX semakin menjadi OSyang banyak digunakan, terutama dari segi kemudahan dan keamanan menjadikan OS ini semakin digandrungi. Sejauh mana kita dapat mengoptimalisasi fungsi MacOS? Berikut ini beberapa cara optialisasi MacOS dari command Terminal

 Menu bar: Men-disable transparency
defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false

# Menu bar: Tunjukan waktu sisa battery; sembunyikan Prosentase
defaults write com.apple.menuextra.battery ShowPercent -string “NO”
defaults write com.apple.menuextra.battery ShowTime -string “YES”

# Menu bar: sembunyikan Time Machine dan Volume icons
defaults write com.apple.systemuiserver menuExtras -array “/System/Library/CoreServices/Menu Extras/Bluetooth.menu” “/System/Library/CoreServices/Menu Extras/AirPort.menu” “/System/Library/CoreServices/Menu Extras/Battery.menu” “/System/Library/CoreServices/Menu Extras/Clock.menu” 

# Selalu tunjukan scrollbars
defaults write NSGlobalDomain AppleShowScrollBars -string “Always”

# Disable animasi opening dan closing window
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false

# Menambah kecepatan window resize pada Cocoa applications
defaults write NSGlobalDomain NSWindowResizeTime -float 0.001

# Ekspansi save panel secara default
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true

# Ekspansi print panel secara default
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true

# Disable dialog “Are you sure you want to open this application?”
defaults write com.apple.LaunchServices LSQuarantine -bool false

# Disable automatic termination pada aplikasi yang tidak aktif
defaults write NSGlobalDomain NSDisableAutomaticTermination -bool true

Trackpad, mouse, keyboard, Bluetooth accessories, dan input

# Trackpad: enable tap to click pada user di login screen
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool true
defaults -currentHost write NSGlobalDomain com.apple.mouse.tapBehavior -int 1
defaults write NSGlobalDomain com.apple.mouse.tapBehavior -int 1

# Trackpad: maping bottom right corner ke right-click
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadCornerSecondaryClick -int 2
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadRightClick -bool true
defaults -currentHost write NSGlobalDomain com.apple.trackpad.trackpadCornerClickBehavior -int 1
defaults -currentHost write NSGlobalDomain com.apple.trackpad.enableSecondaryClick -bool true

# Trackpad: swipe between pages dengan tiga jari
defaults write NSGlobalDomain AppleEnableSwipeNavigateWithScrolls -bool true
defaults -currentHost write NSGlobalDomain com.apple.trackpad.threeFingerHorizSwipeGesture -int 1
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadThreeFingerHorizSwipeGesture -int 1

# Disable “natural” (Lion-style) scrolling
defaults write NSGlobalDomain com.apple.swipescrolldirection -bool false

# Naikan kualitas sound untuk Bluetooth headphones/headsets
defaults write com.apple.BluetoothAudioAgent “Apple Bitpool Min (editable)” -int 40

# Enable full keyboard access for all controls
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3

# Disable press-and-hold pada keys di key repeat
defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false

# Disable auto-correct
defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false


Screen

# Minta password immediately setelah sleep atau screen saver
defaults write com.apple.screensaver askForPassword -int 1
defaults write com.apple.screensaver askForPasswordDelay -int 0

# Simpan screenshots di desktop
defaults write com.apple.screencapture location -string “$HOME/Desktop”

# Simpan screenshots ke format PNG (atau format lain: BMP, GIF, JPG, PDF, TIFF)
defaults write com.apple.screencapture type -string “png”

# Disable bayangan di screenshots
defaults write com.apple.screencapture disable-shadow -bool true

# Enable subpixel font rendering pada non-Apple LCDs
defaults write NSGlobalDomain AppleFontSmoothing -int 2


# Finder #

# Finder: Tutup aplikasi via ⌘ + Q
defaults write com.apple.finder QuitMenuItem -bool true

# Finder: disable animasi window dan Get Info
defaults write com.apple.finder DisableAllAnimations -bool true

# Tampilan icons hard drives, servers, dan removable media di desktop
defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool true
defaults write com.apple.finder ShowHardDrivesOnDesktop -bool true
defaults write com.apple.finder ShowMountedServersOnDesktop -bool true
defaults write com.apple.finder ShowRemovableMediaOnDesktop -bool true

# Finder: Tampilkan hidden files secra default
defaults write com.apple.Finder AppleShowAllFiles -bool true

# Finder: Tampilkan semua ektensi file
defaults write NSGlobalDomain AppleShowAllExtensions -bool true

# Finder: Tampilkan status bar
defaults write com.apple.finder ShowStatusBar -bool true

# Finder: aktifkan seleksi teks pada Quick Look
defaults write com.apple.finder QLEnableTextSelection -bool true

# Tampilkan full POSIX path pada tittle di Finder
defaults write com.apple.finder _FXShowPosixPathInTitle -bool true

# Disable peringatan ketika mengubah ekstensi file
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false

# Non-Aktifkan file .DS_Store pada network volumes
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true

# Disable disk image verification
defaults write com.apple.frameworks.diskimages skip-verify -bool true
defaults write com.apple.frameworks.diskimages skip-verify-locked -bool true
defaults write com.apple.frameworks.diskimages skip-verify-remote -bool true

# Atomatis buka windows baru ketika volume baru di mount di Finder
defaults write com.apple.frameworks.diskimages auto-open-ro-root -bool true
defaults write com.apple.frameworks.diskimages auto-open-rw-root -bool true
defaults write com.apple.finder OpenWindowForNewRemovableDisk -bool true

# Tampilkan item info di bawah icons di desktop dan icon views lainnya
/usr/libexec/PlistBuddy -c “Set :DesktopViewSettings:IconViewSettings:showItemInfo true” ~/Library/Preferences/com.apple.finder.plist
/usr/libexec/PlistBuddy -c “Set :FK_StandardViewSettings:IconViewSettings:showItemInfo true” ~/Library/Preferences/com.apple.finder.plist
/usr/libexec/PlistBuddy -c “Set :StandardViewSettings:IconViewSettings:showItemInfo true” ~/Library/Preferences/com.apple.finder.plist

# Enable snap-to-grid icons di desktop
/usr/libexec/PlistBuddy -c “Set :DesktopViewSettings:IconViewSettings:arrangeBy grid” ~/Library/Preferences/com.apple.finder.plist
/usr/libexec/PlistBuddy -c “Set :FK_StandardViewSettings:IconViewSettings:arrangeBy grid” ~/Library/Preferences/com.apple.finder.plist
/usr/libexec/PlistBuddy -c “Set :StandardViewSettings:IconViewSettings:arrangeBy grid” ~/Library/Preferences/com.apple.finder.plist

# Menambah grid spacing icons

/usr/libexec/PlistBuddy -c “Set :DesktopViewSettings:IconViewSettings:gridSpacing 100” ~/Library/Preferences/com.apple.finder.plist
/usr/libexec/PlistBuddy -c “Set :FK_StandardViewSettings:IconViewSettings:gridSpacing 100” ~/Library/Preferences/com.apple.finder.plist
/usr/libexec/PlistBuddy -c “Set :StandardViewSettings:IconViewSettings:gridSpacing 100” ~/Library/Preferences/com.apple.finder.plist

# Menambah ukuran icons
/usr/libexec/PlistBuddy -c “Set :DesktopViewSettings:IconViewSettings:iconSize 80” ~/Library/Preferences/com.apple.finder.plist
/usr/libexec/PlistBuddy -c “Set :FK_StandardViewSettings:IconViewSettings:iconSize 80” ~/Library/Preferences/com.apple.finder.plist
/usr/libexec/PlistBuddy -c “Set :StandardViewSettings:IconViewSettings:iconSize 80” ~/Library/Preferences/com.apple.finder.plist

# Disable peringatan sebelum konsongkan Trash
defaults write com.apple.finder WarnOnEmptyTrash -bool false

# Default Kosongkan Trash secara secure
defaults write com.apple.finder EmptyTrashSecurely -bool true

# Enable AirDrop di Ethernet dan unsupported Macs
defaults write com.apple.NetworkBrowser BrowseAllInterfaces -bool true

# Tampilkan folder tersembunyi ~/Library
chflags nohidden ~/Library


# Dock & hot corners #
###############################################################################

# Enable highlight hover effect for the grid view of a stack (Dock)
defaults write com.apple.dock mouse-over-hilte-stack -bool true

# Set the icon size of Dock items to 36 pixels
defaults write com.apple.dock tilesize -int 36

# Enable spring loading for all Dock items
defaults write com.apple.dock enable-spring-load-actions-on-all-items -bool true

# Show indicator lights for open applications in the Dock
defaults write com.apple.dock show-process-indicators -bool true

# Don’t animate opening applications from the Dock
defaults write com.apple.dock launchanim -bool false

# Speed up Mission Control animations
defaults write com.apple.dock expose-animation-duration -float 0.1

# Remove the auto-hiding Dock delay
defaults write com.apple.Dock autohide-delay -float 0
# Remove the animation when hiding/showing the Dock
defaults write com.apple.dock autohide-time-modifier -float 0

# Enable the 2D Dock
defaults write com.apple.dock no-glass -bool true

# Automatically hide and show the Dock
defaults write com.apple.dock autohide -bool true

# Make Dock icons of hidden applications translucent
defaults write com.apple.dock showhidden -bool true

# Enable iTunes track notifications in the Dock
defaults write com.apple.dock itunes-notifications -bool true

# Reset Launchpad
find ~/Library/Application\ Support/Dock -name “*.db” -maxdepth 1 -delete

# Add a spacer to the left side of the Dock (where the applications are)
#defaults write com.apple.dock persistent-apps -array-add ‘{tile-data={}; tile-type=”spacer-tile”;}’
# Add a spacer to the right side of the Dock (where the Trash is)
#defaults write com.apple.dock persistent-others -array-add ‘{tile-data={}; tile-type=”spacer-tile”;}’

# Hot corners
# Top left screen corner → Mission Control
defaults write com.apple.dock wvous-tl-corner -int 2
defaults write com.apple.dock wvous-tl-modifier -int 0
# Top right screen corner → Desktop
defaults write com.apple.dock wvous-tr-corner -int 4
defaults write com.apple.dock wvous-tr-modifier -int 0
# Bottom left screen corner → Start screen saver
defaults write com.apple.dock wvous-bl-corner -int 5
defaults write com.apple.dock wvous-bl-modifier -int 0

Leave a Reply

Your email address will not be published. Required fields are marked *