Skip to content

selanyat/batnot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Batnot

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.

Features

  • Low battery notification (Visual)
  • 'Low battery please charge notification in morse code' (Audio notification)

Installation

  • 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

Usage

  • Make file executable
chmod +x batnot.py
  • Open your hyprland config file
  • Execute once on startup and run in background
exec_once = bash -c "sleep 300 && /path/to/intepretor path/to/batnot.py"
# Sleep is completely optional

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

Credits

About

Low Battery notifier

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages