Skip to main content

Command line application that shows a popup window when the battery is low

Project description

code style: prettier

WIP

Battery Status Notifier (bsnotifier)

Command line application that shows a popup window when the battery is low. This Python script can be used to notify battery status in i3wm environments.

Table of contents

Get started

Installation

This application can be simply installed by running:

pip install bsnotifier

if you want to install from a source distribution:

git clone https://github.com/eccanto/battery-status-notifier
cd battery-status-notifier/
python setup.py install

Developers

Requirements

System requirements:

sudo apt-get install wmctrl xvfb x11-utils gnumeric

Python requirements:

pip3 install -r requirements_testing.txt

Set Python versions

  1. Install pyenv
  2. Install python versions:
    for python_version in "3.7" "3.8" "3.9" "3.10" "3.11" ; do pyenv install ${python_version}; done
    
  3. Enable python versions:
    pyenv local "3.7" "3.8" "3.9" "3.10" "3.11"
    

Run

We use tox and pytest to run the test suite:

tox

to run the test suite for a particular Python version, you can do:

tox -e py37

License

MIT

Changelog

  • 1.0.0 - Initial version.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bsnotifier-1.0.0.tar.gz (124.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page