A system-tray battery monitor with a battery-selection window.
Project description
battery-tray
A small Linux system-tray battery monitor, built on sevaht-gui.
- A tray icon shows the selected battery's charge as a colour-graded battery glyph (green → red) with charge/charging state in the tooltip.
- Left-click (or the tray menu's Configure…) opens a window to pick which
battery to monitor and set the refresh interval; both are saved under
sevaht/battery-tray. - Desktop notifications (via
notify-send) fire when the charge level or charging state changes. - If no system tray is available, the window simply runs on its own.
Running
$ battery-tray # start in the tray (window hidden)
$ battery-tray --show # start with the window open
Configuring from the CLI
These update the saved config and exit (handy for scripts/keybinds); the running app picks the same values up from config:
$ battery-tray --list-batteries # show detected batteries and exit
$ battery-tray --battery BAT0 # set the monitored battery by name
$ battery-tray --select-battery # choose interactively from a list
$ battery-tray --set-poll-seconds 10 # set the refresh interval (1-3600s)
Reads battery state from /sys/class/power_supply (Linux only).
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file battery_tray-1.0.0.tar.gz.
File metadata
- Download URL: battery_tray-1.0.0.tar.gz
- Upload date:
- Size: 12.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
674d7d4f1baa1e406852fc9e81124f7ac4696f7a9c7e0c57109a2d1c9ed92d7f
|
|
| MD5 |
be734815eedbbffc888ff8ef63628424
|
|
| BLAKE2b-256 |
bc7b1fa1697846e2819dacf28c474dce3d1b955221d08596c55e6326d422530c
|
Provenance
The following attestation bundles were made for battery_tray-1.0.0.tar.gz:
Publisher:
release.yml on sevaht/battery-tray
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
battery_tray-1.0.0.tar.gz -
Subject digest:
674d7d4f1baa1e406852fc9e81124f7ac4696f7a9c7e0c57109a2d1c9ed92d7f - Sigstore transparency entry: 1935274806
- Sigstore integration time:
-
Permalink:
sevaht/battery-tray@59663762accb1b938dda0aa8d32d0285da06d03f -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/sevaht
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@59663762accb1b938dda0aa8d32d0285da06d03f -
Trigger Event:
push
-
Statement type:
File details
Details for the file battery_tray-1.0.0-py3-none-any.whl.
File metadata
- Download URL: battery_tray-1.0.0-py3-none-any.whl
- Upload date:
- Size: 14.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79f5f566f6ac529f35ea868a71e199e038bd171e0a172838e0db76deb09b198d
|
|
| MD5 |
258eeb3042fc9a195862a31c36753164
|
|
| BLAKE2b-256 |
7fac78f693dd4bb28b7cfdbe79f380209a895f3e4578c03b3af6c0d5e2ef3f4a
|
Provenance
The following attestation bundles were made for battery_tray-1.0.0-py3-none-any.whl:
Publisher:
release.yml on sevaht/battery-tray
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
battery_tray-1.0.0-py3-none-any.whl -
Subject digest:
79f5f566f6ac529f35ea868a71e199e038bd171e0a172838e0db76deb09b198d - Sigstore transparency entry: 1935274823
- Sigstore integration time:
-
Permalink:
sevaht/battery-tray@59663762accb1b938dda0aa8d32d0285da06d03f -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/sevaht
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@59663762accb1b938dda0aa8d32d0285da06d03f -
Trigger Event:
push
-
Statement type: