Skip to main content

An i3 wm block for showing the battery state. Based on battery2 from James Murphy. https://github.com/vivien/i3blocks-contrib]

Project description

An i3 wm status block for showing the battery status in i3 blocks. It’s output uses pango to format the text. Loosely based on battery2 from James Murphy. https://github.com/vivien/i3blocks-contrib]

  • Free software: BSD 2-Clause License

Installation

pip install i3-battery-block-vgg

You can also install the in-development version with:

pip install https://github.com/vgoehler/python-i3-battery-block/archive/master.zip

Command Line Options

usage: i3-battery-block-vgg [-h] [-c] [-b]
                            [-l {debug,info,warning,error,critical}]

CLI for i3 wm block battery

optional arguments:
  -h, --help            show this help message and exit
  -c, --compact         flag for compact mode, truncates all batteries into
                        one
  -b, --show_bug        This will show a marker if the acpi bug has occurred.
  -l {debug,info,warning,error,critical}, --loglevel {debug,info,warning,error,critical}
                        log level

Development

To run all tests run:

tox

Note, to combine the coverage data from all the tox environments run:

Windows
set PYTEST_ADDOPTS=--cov-append
tox
Other
PYTEST_ADDOPTS=--cov-append tox

Changelog

0.0.0 (2020-01-21)

  • First release on PyPI.

Project details


Download files

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

Files for i3-battery-block-vgg, version 0.3.0
Filename, size File type Python version Upload date Hashes
Filename, size i3_battery_block_vgg-0.3.0-py2.py3-none-any.whl (10.1 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size i3-battery-block-vgg-0.3.0.tar.gz (20.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page