https://github.com/sixarm/pmset-commands
pmset commands for power management settings for macOS
https://github.com/sixarm/pmset-commands
macos pmset power script shell
Last synced: about 6 hours ago
JSON representation
pmset commands for power management settings for macOS
- Host: GitHub
- URL: https://github.com/sixarm/pmset-commands
- Owner: SixArm
- Created: 2016-02-10T05:54:50.000Z (about 9 years ago)
- Default Branch: main
- Last Pushed: 2025-04-14T08:46:46.000Z (8 days ago)
- Last Synced: 2025-04-22T13:05:35.910Z (about 7 hours ago)
- Topics: macos, pmset, power, script, shell
- Language: Shell
- Homepage:
- Size: 9.77 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# pmset commands for power management settings for macOS
Commands:
* [`pmset-battery-full`](pmset-battery-full): Is the battery fully charged?
* [`pmset-battery-percent`](pmset-battery-percent): Show the internal battery % charged.
* [`pmset-drawing`](pmset-drawing): What is the power manager drawing from?
* [`pmset-drawing-ac-power`](pmset-drawing-ac-power): Is the system is drawing from AC power?
* [`pmset-drawing-battery-power`](pmset-drawing-battery-power): Is the system drawing from battery power?
* [`pmset-powerful`](pmset-powerful): Is the power manager ready for powerful work?Examples:
$ pmset-battery-full && echo "yes" || echo "no"
yes$ pmset-battery-percent
100$ pmset-drawing
AC Power$ pmset-drawing-ac-power && echo "yes" || echo "no"
yes$ pmset-drawing-battery-power && echo "yes" || echo "no"
no$ pmset-powerful && echo "yes" || echo "no"
yes## Tracking
* Package: pmset-commands
* Version: 2.0.1
* Created: 2015-06-30
* Updated: 2017-11-02
* License: GPL
* Contact: Joel Parker Henderson ([email protected])