My laptop is Dell Precision 5520. And I want to find a non DE dependent way (I don't use Gnome, KDE, etc.) to alert when battery is running low e.g. 10%.
However, most of the solutions so far I found are either cron or polling to check periodically. It's not bad but I prefer event style notification. For instance, when battery is running low, an event is triggered and my script or whatever can then use notifiy-send to alert on screen or do hibernate. Unfortunately searching online using keyword like battery + event + linux + notication doesn't find related information. So my questions:
- if it's hardware dependent (such as battery event notifies OS proactively), what keyword should I use to search on, for instance, Dell's website?
- if there has such event I can exploit, where (e.x. conf files) or how should I look up or configure in os (/etc dir)?