stefano-m / awesome-power_widget

A Power widget for the Awesome Window Manager
GNU General Public License v3.0
26 stars 2 forks source link

Add warning level management #3

Closed PyBonnetainNesterenko closed 4 years ago

PyBonnetainNesterenko commented 6 years ago

Add data and code to manage a (configurable : warn_percentage, warn_bg, warn_fg and warn_timeout) warning level.

The warn-level notification disappears automatically after warn_timeout seconds, or if the user clicks on it. It will not reappear before critical battery level.

The critical-level notification disappears if the user clicks on it, but will reappear at next battery level change (if still decreasing).

Notifications disappear if battery is charging.

stefano-m commented 4 years ago

I ended up implementing the feature myself: