|Several years ago I use Arch + LXDE on my netbook. I always hated that a "low battery" alert did not appear to alert me when the computer was about to discharge completely. Finally, today I decided to fix it.|
To add it, just right click on the taskbar, Add / Remove panel elements. Once the Preferences Panel > Add > Battery monitor.
The new battery monitor will appear on our taskbar. We right click on the icon and select the option Monitor Settings Drums.
En Alarm command we can specify the command to execute when the X amount of minutes is missing (determined in Alarm Time - Minutes Remaining) before the battery runs out.
We entered Alarm command something similar to the following:
/usr/lib/notification-daemon-1.0/notification-daemon & notify-send 'Low Battery' 'Only 5 minutes of battery left' -i / usr / share / icons / lubuntu / panel / 24 / xfpm-primary-000 .svg
A simple notify-send should have been enough, but in my case I had to add the previous execution of the notification-daemon for it to work properly.
Needless to say, it is possible to modify the message and the icon to suit everyone.