Batnot is a simple script to send a notification when battery is below 30 percent. It was built with hyprland in mind.
Are there other alternatives well implemented and maintained?? Most likely, more like a yes. But I'm still building one on my own anyways.
- Low battery notification (Visual)
- 'Low battery please charge notification in morse code' (Audio notification)
- Clone the repository
git clone git@github.com:selanyat/batnot.git
cd batnot- Create a virtual environment
python -m venv batnot
source ./batnot/bin/activate- Install dependencies
pip install -r reqirements.txt- Make file executable
chmod +x batnot.py- Open your hyprland config file
- Execute once on startup and run in background
Note
A notification utility such as mako or dunst must be installed on your PC for this to work.
See mako on arch wiki
See dunst website
I can't assure compatibility with other notification daemons
- The notification sound was generated on online sound.net
exec_once = bash -c "sleep 300 && /path/to/intepretor path/to/batnot.py" # Sleep is completely optional