Modules§
Enums§
Constants§
Functions§
- check_
notify_ full_ battery - notify if battery is fully charged
- find_
lowest_ threshold - Find lowest threshold which has been passed with the current battery level
- get_
charging_ status_ path - get_
current_ power - Return the current battery level
- get_
power_ status_ path - get_
status_ charging - notify_
now - reset_
other_ notifications - Reset all notifications which are not the current threshold_val
- run_
command - send_
message - send a message using linux notify-send api
- send_
notification - Send a notification using the rust_notify library. The title and message are used from the Notification if given and templated by replacing ‘{}’ with the current percentage. In addition, a system command is run if specified in the Notification.