Skip to content

Instantly share code, notes, and snippets.

@pointum
Created July 16, 2020 20:42
Show Gist options
  • Save pointum/f740e74e7d04a91eb0a5be3601295c92 to your computer and use it in GitHub Desktop.
Save pointum/f740e74e7d04a91eb0a5be3601295c92 to your computer and use it in GitHub Desktop.
HazeOver Zen Mode
tell application "HazeOver"
set myFocusMode to not enabled
set enabled to myFocusMode
end tell
tell application "System Events"
tell dock preferences to set autohide to myFocusMode
end tell
do shell script "defaults write -g _HIHideMenuBar -bool " & myFocusMode as integer
use framework "Foundation"
set dnc to current application's NSDistributedNotificationCenter's defaultCenter()
dnc's postNotificationName:"AppleInterfaceMenuBarHidingChangedNotification" object:(missing value)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment