No description
Find a file
2019-07-02 02:12:22 -05:00
archlinux Update PKGBUILD 2019-03-31 10:50:36 -05:00
bin Added informative print. 2019-03-30 09:09:17 -05:00
src Improve functionallity 2019-07-02 02:12:22 -05:00
.gitignore Initial commit. 2019-03-29 19:10:25 -05:00
Cargo.lock Added support for sending notifications. 2019-07-01 23:07:17 -05:00
Cargo.toml Added support for sending notifications. 2019-07-01 23:07:17 -05:00
powerman.service Update service type 2019-03-31 10:48:49 -05:00
README.md Add case uses 2019-03-30 23:41:36 +00:00

powerman - Power Management framework for Linux written in Rust.

It project is being writen, not ready for use yet.

What are the use-cases?

When you want to avoid your laptop full discharging and losing your not-saved work, losing your BIOS/system time. Some laptoos doesn't send udev events when your battery is discharging, then rules doesn't work. powerman allow you to do it work easily, see the usage.

Usage

$ powerman <Minimun level of battery before ation> <Time in seconds to check the battery level> <Action>

Example:

$ powerman 5 60 hibernate # Hibernate the computer when the battery level is less than 5%, the check is done every 60 seconds.

If you want to keep it running in the background, just add & at the end of the command, to run in startup, add the desired command to .bashrc, your desktop/WM startup config or enable powerman.service.