1 Assumes all necessary and appropriate setting in System Preferences > Security & Privacy > Privacy have been set/addressed as needed.The example Lua code and example AppleScript code, shown further below, was tested under macOS Catalina and macOS Big Sur with Language & Region settings in System Preferences set to English (US) - Primary and worked for me without issue 1. Some Lua code, which is what Hammerspoon uses, along with some AppleScript code. With that said, I'll offer you a way that works for me and utilizes a free third-party application named Hammerspoon, along with using the free third-party Hammerspoon module hs._ to have access to the undocumented Spaces API. This requires an application to be memory resident and able to respond to the target event.Īs an example, you could roll your own in Xcode, or use any third-party application capable of responding to a Desktop/Space changed event, determine which Desktop/Space you are on, and then toggle the autohide preference of the Dock to hide/show it based on the conditions, effectively pressing the ⌥⌘D keyboard shortcut programmatically to avoid doing it manually. No, the preferences of the Dock are global between Desktops/Spaces, however, there is a programatic way to automate the toggling of the autohide preference of the Dock as you switch between Desktops/Spaces. I know, that I can just do Option- Command - D to hide/unhide the dock whenever, but is there a way, to have different Dock settings in different spaces?
0 Comments
Leave a Reply. |