Hallo I am annoyed that hot corners won't be disabled when I am playing a fullscreen game. So I want a quick way to toggle the settings. I found this command

defaults write com.apple.dock wvous-tl-corner -int 1

Unfortunately it doesn't change anything. What can I do?


wvous-tl-corner is the top-left hot corner. Use ‘tl’, ‘tr’, ‘bl’, ‘br’ for each corner respectively, and use -int 0 to disable that corner.

To find the integer for activating the hot corner of choice, make the change in System Preferences, then use defaults read com.apple.dock wvous-tl-corner.

Don't forget to restart the Dock too after writing using defaults: killall Dock.

| improve this answer | |
  • 1
    the killall Dock command was the missing part. thanks! – Nathanael Skrepek Oct 2 '17 at 13:24

Riffing on the excellent answer from @grg, you can loop over each corner like this:

#!/usr/bin/env bash

set -eu

# Turn off hot-corners
for corner in tl tr br bl;
    defaults write com.apple.dock "wvous-$corner-corner" -int 0
killall Dock
| improve this answer | |

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .