vitor Posted December 18, 2021 Share Posted December 18, 2021 Usage Toggle Low Power Mode for your battery or power adapter via the lpm keyword. ⤓ Install on the Alfred Gallery | Source Rohit, LoneFireBlossom and alezvic 3 Link to comment
vitor Posted December 18, 2021 Author Share Posted December 18, 2021 When reporting issues, please include your exact installed versions of:The Workflow.Alfred.macOS.In addition to:The debugger output. Perform the failing action, click “Copy” on the top right and paste it here.Details on what you did, what happened, and what you expected to happen. A short video of the steps with the debugger open may help to find the problem faster.Thank you. Accurate and thorough information is crucial for a proper diagnosis which allows me to help you better. LoneFireBlossom 1 Link to comment
vitor Posted June 8, 2022 Author Share Posted June 8, 2022 Update.Base to support Ventura System Settings.Script Filter rewritten in JXA.You should see no change in behaviour, but this change is working towards future-proofing against Apple’s changes. Link to comment
snoop182 Posted June 15, 2022 Share Posted June 15, 2022 (edited) Hello, Thx for your work, this workflow is a must have for MacBook users In release 2022.2 I see actions in live mode --> Alfred open preferences go to the battery Tab check/uncheck checkbox and close preferences window In release 2022.1 all this actions are "hidden" so I don't see them. Continue using 2022.1 MacOS 12.4, MBP 2021 M1 pro Edited June 15, 2022 by snoop182 Link to comment
vitor Posted June 16, 2022 Author Share Posted June 16, 2022 Right you are! Restored the behaviour in 2022.3, while keeping the base for Ventura. snoop182 1 Link to comment
bo9 Posted August 3, 2022 Share Posted August 3, 2022 Thank you so much for this super helpful workflow!!! Good stuff. 👍🏽 Link to comment
vitor Posted October 8, 2022 Author Share Posted October 8, 2022 Updated to 2022.6. Add configurable keyword. Link to comment
vitor Posted October 27, 2022 Author Share Posted October 27, 2022 Updated to 2022.7. Update for Ventura System Settings. Link to comment
Jakeroid Posted March 28, 2023 Share Posted March 28, 2023 In 2023.2 version I see all actions in realtime. Is it possible to hide that system settings window? Link to comment
vitor Posted March 28, 2023 Author Share Posted March 28, 2023 Welcome @Jakeroid, 2 hours ago, Jakeroid said: Is it possible to hide that system settings window? Technically yes, but the drop-down will always show on top of other windows and be unreliable. So in practice it’s not. Link to comment
Alexander Willner Posted September 14, 2023 Share Posted September 14, 2023 What about using sudo pmset -b lowpowermode 1 and sudo pmset -a lowpowermode 0 instead? Link to comment
vitor Posted September 14, 2023 Author Share Posted September 14, 2023 That would require authentication every time you change modes, which would take longer and be awfully inconvenient. Link to comment
Alexander Willner Posted September 14, 2023 Share Posted September 14, 2023 (edited) I see - I've Touch ID enabled for sudo commands, so it's as inconvenient as the current solution (which also requires authentication). Btw if the following helps: **Version:** v2023.3 on macOS 13.5.2 (22G91) with Alfred 5.1.2 **Steps that will reproduce the problem:** 1. Invoke Alfred 2. Type "lpm" 3. Press enter **What is the expected result:** Battery's Low Power Mode enabled **What happens instead:** Battery's Low Power Mode still the same **Possible workaround:** Use CLI (see above) *Any additional information:** The systems settings app starts, the value is changed (via drop down), authentication via Touch ID is required and the settings app closes. However, the mode did not change Edited September 14, 2023 by Alexander Willner Link to comment
vitor Posted September 14, 2023 Author Share Posted September 14, 2023 1 hour ago, Alexander Willner said: I've Touch ID enabled for sudo commands As explained in the linked issue, that’s not a solution most users will be comfortable with. The post you linked even says as much: I don’t recommend messing around with this trick if you don’t feel comfortable working in the Terminal app and changing system preference files. 1 hour ago, Alexander Willner said: authentication via Touch ID is required You’re the second person to report that. Maybe your main account isn’t an admin account? Either way, that’s comparatively an edge case and the most common usage needs to be supported. It’s unfortunate Apple doesn’t provide a better way to do this, but the only thing we can do about that is open a Feedback. No idea why changing low power mode isn’t an option on Shortcuts on macOS. Link to comment
vitor Posted January 5 Author Share Posted January 5 Updated to 2024.1.Allow changing settings with either System Settings or Power Management. See the Workflow’s Configuration for more information.Support for more chips, via Power Management method. Link to comment
vitor Posted March 8 Author Share Posted March 8 Updated to 2024.2.Updated icons.Default to Power Management option instead of System Settings.Fix for new System Settings layout.Skip Input as Universal Action.Add missing period in description. Link to comment
vitor Posted September 17 Author Share Posted September 17 Updated to 2024.3. Apple broke the System Settings automation method again, so it’s time to finally phase it out. This version only allows changing Low Power Mode via the more full-featured and reliable Power Management mode. Unfortunately that requires a password every time a change is made, but that is outside my control. 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