https://github.com/samedwardes/alfred-workflow-toggle-stage-manager
https://github.com/samedwardes/alfred-workflow-toggle-stage-manager
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/samedwardes/alfred-workflow-toggle-stage-manager
- Owner: SamEdwardes
- License: mit
- Created: 2023-02-21T18:45:41.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-22T23:46:38.000Z (over 3 years ago)
- Last Synced: 2025-02-03T02:29:59.979Z (over 1 year ago)
- Size: 363 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Toggle Stage Manager
Toggle Mac OS [Stage Manager](https://support.apple.com/en-us/HT213315) on and off.
## Usage
Trigger the Workflow by typing `stage`. Press enter to toggle Stage Manager on and off.

Alternatively, you can trigger the workflow using the **Ctrl-Opt-S** hotkey.
## Details
Once triggered the Workflow will run the following script in bash:
```bash
STATE=$(defaults read com.apple.WindowManager GloballyEnabled 2> /dev/null)
[[ ${STATE} = 0 || -z ${STATE} ]] && ENABLE="true" || ENABLE="false"
defaults write com.apple.WindowManager GloballyEnabled -bool ${ENABLE}
```
## Credits
Developed by Sam Edwardes. The original code snippet is taken from .
## Changelog