battery_notifier
Sends desktop notifications for low and critical battery warnings, and optionally when charging/discharging state changes
Installation
battery_notifier has the following dependencies available on PyPI:
pydbusPyGObject
The package can be installed using pipx, e.g.:
pipx install battery_notifier
Configuration
battery_notifier can be configured with a file located at ~/.config/battery_notifier/config.ini, e.g.
[low]
expire_timeout = 0
[critical]
expire_timeout = 0
[discharging]
enable = true
expire_timeout = 0
[charging]
enable = true
expire_timeout = 5000
Starting with systemd
A systemd service file is included in this repository which can be enabled and started like so:
# Copy the service file
cp battery_notifier.service ~/.local/share/systemd/user/
# Enable the service
systemctl --user enable battery_notifier
# Start the service
systemctl --user start battery_notifier
Metadata
Release files for battery-notifier 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| battery_notifier-0.3.tar.gz | 3.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| battery_notifier-0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.2 kB
Release files / battery_notifier-0.3.tar.gz
| Download URL | battery_notifier-0.3.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fd9db681e768e9639b9fb182050ea0d44a3480d569f23a9fd42043935adf26db
|
|
BLAKE2b-256 checksum How to use checksums |
5785e3b08af543dde82c51e40cb8b9b934a8a67f9eb4a622d82b4a8f3471ebbb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / battery_notifier-0.3-py3-none-any.whl
| Download URL | battery_notifier-0.3-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5823bcb469e125bf8a3043d1af370ffe4d55eb7b231179eec2682459462a116d
|
|
BLAKE2b-256 checksum How to use checksums |
35767921ab156bbb7adb80a9d8973bb8d9260d862c46fc74f976fb9b6daa7a89
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|