megira Posted October 18 Share Posted October 18 Hi everyone, I’m trying to set up a way to toggle a workflow on and off using a single hotkey in Alfred (e.g., Shift + Cmd + D). The goal is to: 1. Activate the workflow when the hotkey is pressed. 2. Deactivate or close the workflow if the same hotkey is pressed again while the workflow is active. (same as i toggle alfred on and off with ⌘␣) Currently, I have to press Esc to exit the workflow, and I’d like to use the same hotkey for both actions to make the process more efficient. BTW, I’ve set the workflows/hotkeys inside the Thumbnail Navigation Workflow (created by @vitor) to leverage its navigation properties. here is my current setup: Any suggestions ? Link to comment
FireFingers21 Posted October 29 Share Posted October 29 @megira Welcome to the forum! A simple option within your custom workflow is to use environment variables to track usage of the hotkey. When you trigger the hotkey, check the value of the variable and proceed conditionally. If the variable is false, for example, set it to true and activate the workflow. If the variable is true, set it to false and hide Alfred. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now