Batify is an udevrule-file triggering plug and critical battery level notifications (using libnotify and xpub)
- Battery level threshold for when notifications are sent
- Transient notifications support (using
notify-send -e) - Each notification replaces the previous one sent by Batify (no stacking/overlapping)
- Uses an external script:
batify.sh
- Minimal: only one udevrule-file and one script file(using libnotify).
- Everywhere: displays notifications on any current graphical session.
- Support: for XWayland as well.
Using libnotify, you might need to install a notification server.
$ git clone --recursive https://github.com/Xartoks/batify.git
$ cd batify
$ sudo make install
| Description | Level |
|---|---|
| Battery level is 10,15 or 20% | normal |
| Battery level is less or equal to 5% | critical |
| AC adapter plugged-in | low |
| AC adapter unplugged | low |
- You might need to replace
BAT0with your battery identifier:
ACTION=="change", KERNEL=="BAT0", \