Skip to content

Instantly share code, notes, and snippets.

@agmm
Last active March 29, 2022 12:16
Show Gist options
  • Save agmm/d8b9d13b4689b3c97c78715e548a48cb to your computer and use it in GitHub Desktop.
Save agmm/d8b9d13b4689b3c97c78715e548a48cb to your computer and use it in GitHub Desktop.
Script to configure the bahavior of hot corners programatically (macOS)
# Possible values:
# 0: no-op
# 2: Mission Control
# 3: Show application windows
# 4: Desktop
# 5: Start screen saver
# 6: Disable screen saver
# 7: Dashboard
# 10: Put display to sleep
# 11: Launchpad
# 12: Notification Center
# 13: Lock screen
# Top left screen corner → Lock screen
defaults write com.apple.dock wvous-tl-corner -int 13
defaults write com.apple.dock wvous-tl-modifier -int 0
# Top right screen corner → Put display to sleep
defaults write com.apple.dock wvous-tr-corner -int 10
defaults write com.apple.dock wvous-tr-modifier -int 0
# Bottom left screen corner → Desktop
defaults write com.apple.dock wvous-bl-corner -int 4
defaults write com.apple.dock wvous-bl-modifier -int 0
# Bottom right screen corner → Notification Center
defaults write com.apple.dock wvous-br-corner -int 12
defaults write com.apple.dock wvous-br-modifier -int 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment