py3status module to show the status of a UPS battery
Project description
py3status-ups-battery-status
Python module for py3status to monitor my UPS battery status
Screenshot
Installation
With Pip
pip install py3status-ups-battery-status
From Git
git clone https://github.com/mcgillij/py3status-ups-battery-status.git
mkdir -p ~/.i3/py3status && cd ~/.i3/py3status
ln -s <PATH_TO_CLONED_REPO>/src/py3status-ups-battery-status/ups-battery-status.py ./
Installing with yay
yay -S py3status-ups-battery-status
Building From AUR (Arch)
git clone https://aur.archlinux.org/py3status-ups-battery-status.git
cd py3status-ups-battery-status
makechrootpkg -c -r $HOME/$CHROOT
Installing Arch package
sudo pacman -U --asdeps py3status-ups-battery-status-*-any.pkg.tar.zst
Dependencies
This module depends on the Network UPS Tools(nut) package. And having already configured your battery with it. It assumes that you've named your battery battery. If you've named it something else you can change it in the module itself.
Dependency installation on Arch:
pacman -S nut
Dependency installation on Debian:
apt install nut
Usage
Add the module to your list of configured py3status modules
~/.config/i3status.conf
...
order += "arch_updates"
order += "volume_status"
order += "ups_battery_status"
...
And then just restart your i3 session.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file py3status-ups-battery-status-0.1.3.tar.gz
.
File metadata
- Download URL: py3status-ups-battery-status-0.1.3.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.10.1 Linux/5.15.7-zen1-1-zen
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e71368f84c355156d2aaf75d18bdb9fdab6f2a33ce703234ed329a8092ecde64 |
|
MD5 | 3809c93d271dcf9739304a756f5beb70 |
|
BLAKE2b-256 | 0149e2d135aaa6f716229bff1c37204775c8f9a4da9dd9ca90389f9cd257e287 |
File details
Details for the file py3status_ups_battery_status-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: py3status_ups_battery_status-0.1.3-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.10.1 Linux/5.15.7-zen1-1-zen
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0a7fda907ad63f4d5b6e1b52025ff3c264c1bbf59c18bcc05e890a008b27ede |
|
MD5 | 5d9abf4b086c340dd7e85c035100f37b |
|
BLAKE2b-256 | c7f739d1fcab14da9f1c0072280f2ee3ddbce02c7e909b5849b87c373d93a8c4 |