Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mcgillij/py3status-ups-battery-status
Python module for py3status to monitor my UPS battery status
https://github.com/mcgillij/py3status-ups-battery-status
archlinux aur battery py3status python ups
Last synced: about 1 month ago
JSON representation
Python module for py3status to monitor my UPS battery status
- Host: GitHub
- URL: https://github.com/mcgillij/py3status-ups-battery-status
- Owner: mcgillij
- License: mit
- Created: 2020-12-31T05:52:12.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-13T01:58:40.000Z (about 3 years ago)
- Last Synced: 2024-10-11T19:10:29.121Z (3 months ago)
- Topics: archlinux, aur, battery, py3status, python, ups
- Language: Python
- Homepage:
- Size: 32.2 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# py3status-ups-battery-status
Python module for py3status to monitor my UPS battery status[![Downloads](https://static.pepy.tech/personalized-badge/py3status-ups-battery-status?period=total&units=international_system&left_color=blue&right_color=green&left_text=Downloads)](https://pepy.tech/project/py3status-ups-battery-status)
## Screenshot
![py3status-ups-batter-status](https://raw.githubusercontent.com/mcgillij/py3status-ups-battery-status/main/images/ups_battery_status.png)## Installation
### With Pip
``` bash
pip install py3status-ups-battery-status
```### From Git
``` bash
git clone https://github.com/mcgillij/py3status-ups-battery-status.git
mkdir -p ~/.i3/py3status && cd ~/.i3/py3status
ln -s /src/py3status-ups-battery-status/ups-battery-status.py ./
```### Installing with `yay`
``` bash
yay -S py3status-ups-battery-status
```### Building From AUR (Arch)
``` bash
git clone https://aur.archlinux.org/py3status-ups-battery-status.git
cd py3status-ups-battery-status
makechrootpkg -c -r $HOME/$CHROOT
```### Installing Arch package
``` bash
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:
``` bash
pacman -S nut
```Dependency installation on Debian:
``` bash
apt install nut
```## Usage
Add the module to your list of configured py3status modules*~/.config/i3status.conf*
``` bash
...
order += "arch_updates"
order += "volume_status"
order += "ups_battery_status"
...```
And then just restart your i3 session.