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

Documentation

https://python-i3-battery-block.readthedocs.io/

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.

Source Distribution

i3-battery-block-vgg-0.4.0.tar.gz (23.7 kB view details)

Uploaded Source

Built Distribution

i3_battery_block_vgg-0.4.0-py2.py3-none-any.whl (11.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file i3-battery-block-vgg-0.4.0.tar.gz.

File metadata

  • Download URL: i3-battery-block-vgg-0.4.0.tar.gz
  • Upload date:
  • Size: 23.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.5

File hashes

Hashes for i3-battery-block-vgg-0.4.0.tar.gz
Algorithm Hash digest
SHA256 9e28e1d4d72823e39bf30bade40df71e61afbf33a78a8b0bf346d466e9514ee0
MD5 c3b51217db2a854f6087a37da1c1bae8
BLAKE2b-256 dd3d67d1d16fbe85e76944d9bec889e6dd4722250093c4ddc25a8a34e615ab22

See more details on using hashes here.

File details

Details for the file i3_battery_block_vgg-0.4.0-py2.py3-none-any.whl.

File metadata

  • Download URL: i3_battery_block_vgg-0.4.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.5

File hashes

Hashes for i3_battery_block_vgg-0.4.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 438e2c9ff9b3af1c4fb3d2189b51ea0772121b1a0b23ffb6308dd9ddc28572fd
MD5 e681ba0e65f74ec1b0d1bdb07b419067
BLAKE2b-256 8516a4483a18b9976c1c3f014ae832e89074dee62f5afcad7e674f093d0d63a0

See more details on using hashes here.

Supported by

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