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 details)

Uploaded Source

File details

Details for the file bsnotifier-1.0.0.tar.gz.

File metadata

  • Download URL: bsnotifier-1.0.0.tar.gz
  • Upload date:
  • Size: 124.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.0

File hashes

Hashes for bsnotifier-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0aaa48390b3cc609b885f4f2ad22de66b950cf40eda67c8b990c2cd656591a11
MD5 85f346da4b210d7d5fcf60b1b325811f
BLAKE2b-256 1febf1364be7c2fc14453767a685acfd5a1d6e389289c30a6320d9541f192bb6

See more details on using hashes here.

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