GitXplorerGitXplorer
s

low-battery-notifier

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Verified
931037c564a774ea3e49c3835c7b523d914dbf27

Update README.md

sserkan-bayram committed a year ago
Unverified
99e6bd534896d7c76475e39d5f4fe43e6957596e

Initial commit

sserkan-bayram committed a year ago

README

The README file for this repository.

Low Battery Notifier

I'm using i3 wm and noticed it doesn't send any notification when my battery gets low. I had that kind of troubles on different desktop environments before and here is a simple script to fix it.

Dependencies

I used notify-send to send notifications and psutil to get battery details.

Notify-send

Run notify-send -v to check is notify-send installed.

If it isn't, you can run sudo apt-get install libnotify-bin for Debian based distros.

Psutil

You can run pip install psutil to get psutil if it isn't installed already.

Installation

1- Clone this repo to your local.

git clone git@github.com:serkan-bayram/low-battery-notifier.git

2- Set main.py to run at startup. If you are using i3 wm you can simply put

exec --no-startup-id python3 /path/to/script.py

in your i3 config.