Low battery notifier written in rust. For Linux.
- rust
- libnotify
- A physical battery (probably?)
To Install:
$ rustup version stable
Might be required before running this command
# make install
To Uninstall:
# make uninstall
The binary file will be stored in /usr/local/bin
low-battery-notification
This program will look for the system's XDG_CONFIG_HOME
variable first, and if the variable does not exist, it will then try to find the HOME
then add a .config
directory on the way.
On the configuraiton directory, the program will search for low_battery_notification.yaml
file and read the configuration there.
message
: Title of the notificationurgency
: Notification urgency used by libnotify Can be selected betweencritical
,normal
,low
update_time
: Delay between checking battery statusalert_battery
: Battery ratio it will alert on.
message: Low battery
urgency: critical
update_time: 1
alert_battery: 0.15
GNU Public License Version 3