Pwrcheck is a command-line tool that helps detect battery usage status. It's easy to use, scriptable and provides a simple solution to determine whether devices are running on battery or not.
With pwrcheck installed, all you need to do is run a quick command to get an accurate reading of your computer's current power status. Specifically, pwrcheck returns a value of 0 if your computer is running on AC power, or a value of 1 if it's running on battery power. This can be incredibly useful for a wide range of different applications, from monitoring the health of your battery to optimizing your power settings for different scenarios.
But pwrcheck isn't just simple and reliable - it's also incredibly versatile. With its easy-to-use scripting interface, you can build custom commands and workflows that automate your power management tasks and make your life easier. And if you're not sure where to start, the source code even includes a trivial shell script called check.sh that demonstrates one way to use pwrcheck to determine if your computer is running on battery power.
Overall, if you're looking for a smart, powerful way to manage your computer's power settings, then pwrcheck is definitely worth checking out. With its simple interface, flexible scripting options, and reliable performance, it's a must-have tool for anyone who's serious about optimizing their machine for peak performance and efficiency.
Version 1.0: N/A