https://github.com/edu4rdshl/powerman
Power Management framework for Linux written in Rust.
https://github.com/edu4rdshl/powerman
Last synced: 2 months ago
JSON representation
Power Management framework for Linux written in Rust.
- Host: GitHub
- URL: https://github.com/edu4rdshl/powerman
- Owner: Edu4rdSHL
- Created: 2019-07-02T04:09:31.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-03T00:17:45.000Z (almost 6 years ago)
- Last Synced: 2025-02-01T10:12:44.319Z (4 months ago)
- Language: Rust
- Size: 874 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
powerman - Power Management framework for Linux written in Rust.
It project is being writen and not full featured, if you have any request enhancement open an issue.
# 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
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.