Created
July 16, 2020 20:42
-
-
Save pointum/f740e74e7d04a91eb0a5be3601295c92 to your computer and use it in GitHub Desktop.
HazeOver Zen Mode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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