Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/midhunsureshr/pypower
A py3status module for detecting power data.
https://github.com/midhunsureshr/pypower
Last synced: 13 days ago
JSON representation
A py3status module for detecting power data.
- Host: GitHub
- URL: https://github.com/midhunsureshr/pypower
- Owner: MidhunSureshR
- License: gpl-3.0
- Created: 2020-04-05T08:04:09.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-30T14:24:59.000Z (over 4 years ago)
- Last Synced: 2024-11-06T01:55:26.472Z (2 months ago)
- Language: Python
- Size: 26.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pypower
A small but effective py3status module for displaying power details on py3status bar.![screenshot](https://i.imgur.com/oJzzN4a.png)
## Motivation
The default battery module for py3status ( [battery_level](https://py3status.readthedocs.io/en/latest/modules.html#battery-level) ) does not work on some devices.
This is an alternative module that can be used in such cases.**Note: This was made as a quick fix and contains pretty bad code. There is a lot of room for improvement.**
## Prerequisites
- Font Awesome
- [Python Dbus Module](https://pypi.org/project/dbus-python/)## How to use
Add the following line to your pystatus config file:
```
order += "pypower"
```
Make sure you pass location of this module in your i3config.
It should look like this:
```
bar {
...
status_command py3status -i /path/to/this/pypower-module/
...
}```
## Acknowledgement
[wogscpar](https://github.com/wogscpar/upower-python) for his UPower wrapper.