Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Python module for py3status to monitor my UPS battery status

License

Notifications You must be signed in to change notification settings

mcgillij/py3status-ups-battery-status

Repository files navigation

py3status-ups-battery-status

Python module for py3status to monitor my UPS battery status

Downloads

Screenshot

py3status-ups-batter-status

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.