Toggle hot corners with a script 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.