Created attachment 1814 add support for low-battery notifications The hal_branch of xfce4-battery-plugin is currently lacking any form of low-battery notifications. My laptop has actually shut itself off a few times ever since I stopped using another app that (among many other broken things) did low-battery notifications, because I kept failing to notice the battery is low. Attached patch adds support for three levels of notifications ('warn1', 'warn2', and 'critical'), using libnotify, or, if not present (or not working), normal GtkMessageDialogs. It's lacking any amount of configurability -- the notification levels are hard-coded at 15%, 7%, and 3%, and the strings displayed are a little silly and could use some work. But, it's good enough for me, so I thought I'd at least post my patch; if I don't get around to improving it, maybe someone else will.
Maybe we can use the low/warning levels from HAL when they are available.
Thanks for sharing, but I don't plan to support the hal branch. Hal itself is deprecated, and trying to replace the entire backend with either hal or some more modern replacement would cut the plugin off platforms where they are not available.