Skip to main content

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).

Metadata

Release files for battery-tray 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for battery-tray 1.0.3
File Size Uploaded Provenance Actions
battery_tray-1.0.3.tar.gz 12.2 kB With provenance Details for battery_tray-1.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for battery-tray 1.0.3
File Interpreter ABI Platform Actions
battery_tray-1.0.3-py3-none-any.whl Python 3 none any Details for battery_tray-1.0.3-py3-none-any.whl

Total release size: 26.1 kB

Release files / battery_tray-1.0.3.tar.gz

Download URL battery_tray-1.0.3.tar.gz
Size 12.2 kB
Tags Source
SHA-256 checksum
How to use checksums
8fc24b20c680007cf7e2ada49637e775bef82dbc42943f7448b56c26dbfe872a
BLAKE2b-256 checksum
How to use checksums
fd4fd5fe42e683bf5dc4f13526bcbd4b9273470e68f4e231b8e64125fad489b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

Release files / battery_tray-1.0.3-py3-none-any.whl

Download URL battery_tray-1.0.3-py3-none-any.whl
Size 13.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
81943eb13ab86189e2f95fc60b85eb14557b24bead407879e5a8268a0139ba8b
BLAKE2b-256 checksum
How to use checksums
5d73a9dd0d6bc42d314a0783e13967c9c56395945160809882344f6a2e6822a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

Security for battery-tray 1.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for battery_tray-1.0.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page