SamEdwardes Posted February 21 Share Posted February 21 A Workflow to toggle Stage Manager on and off: https://github.com/SamEdwardes/alfred-workflow-toggle-stage-manager I welcome any feedback. This is the first Workflow I have attempted to share, so please let me know what if anything needs to be changed. TomBenz 1 Link to comment Share on other sites More sharing options...
vitor Posted February 22 Share Posted February 22 Welcome @SamEdwardes, Suggestion: Adding a Hotkey will provide another trigger which I’m sure many will default to. I’ve also find a two small cases which should be fixed before adding to the Gallery: If one has never enabled Stage Manager (you can simulate that with defaults delete com.apple.WindowManager GloballyEnabled), the first time calling the workflow won’t work. This is because you’re only checking for the value 0 and the case where the entry does not exist only outputs and error. Easiest fix is to change the check on the second line to [[ ${STATE} = 0 || -z ${STATE} ]]. That way it’ll work in both situations. The icon is too small (it needs to be 256x256 px or larger) and is essentially a screenshot. You can create a quick icon with https://font2png.com. I recommend adding a non-transparent background and increasing the corner radius. Pinging @Stephen_C and @sepulchra on that last tip as well since we’ve discussed icons before. Stephen_C 1 Link to comment Share on other sites More sharing options...
sepulchra Posted February 22 Share Posted February 22 @vitor's suggestion is a great one. I've also used SF Symbols to create pngs that will work well with alfred. I haven't used it but there is also a handy workflow that makes it even easier. Link to comment Share on other sites More sharing options...
SamEdwardes Posted February 22 Author Share Posted February 22 Thankyou @vitor and @sepulchra for the feedback I have made the suggested changes. Can you please take a second look? https://github.com/SamEdwardes/alfred-workflow-toggle-stage-manager Link to comment Share on other sites More sharing options...
vitor Posted February 22 Share Posted February 22 (edited) @SamEdwardes Almost good to go! Two small things to fix: Please don’t use com.alfredapp in the bundle identifier. Seeing as you have a domain, it should be com.samedwardes.alfred.toggle-stage-manager. You’ve added an empty Popup Button in the configuration which is not doing anything so should be removed. Edited February 22 by vitor Link to comment Share on other sites More sharing options...
SamEdwardes Posted February 22 Author Share Posted February 22 Thank you Vitor - I think I have it fixed now: https://github.com/SamEdwardes/alfred-workflow-toggle-stage-manager Link to comment Share on other sites More sharing options...
vitor Posted February 23 Share Posted February 23 All good! It’s now live at https://alfred.app/workflows/samedwardes/toggle-stage-manager/. Thank you for the fast fixes. SamEdwardes 1 Link to comment Share on other sites More sharing options...
SamEdwardes Posted February 23 Author Share Posted February 23 That was fast, thank you! I am curious how do updates work? I doubt this workflow will need many updates. But when they do how do I (or you) push them? Link to comment Share on other sites More sharing options...
Stephen_C Posted February 23 Share Posted February 23 @SamEdwardes forgive me for not finding the thread(s) where updates to gallery workflows have been mentioned but effectively they're automatically picked up when a workflow is updated on GitHub. Stephen Link to comment Share on other sites More sharing options...
SamEdwardes Posted February 24 Author Share Posted February 24 Hanks Stephen! Is it monitoring the main branch? Or when ever I release a new tag? Link to comment Share on other sites More sharing options...
vitor Posted February 24 Share Posted February 24 In your case it’s when you make a new GitHub stable release. The update is not instant, there is a delay by design. Link to comment Share on other sites More sharing options...
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