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

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.2
File Size Uploaded Provenance Actions
battery_tray-1.0.2.tar.gz 12.2 kB With provenance Details for battery_tray-1.0.2.tar.gz

Built distribution (wheel)

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

Total release size: 26.1 kB

Release files / battery_tray-1.0.2.tar.gz

Download URL battery_tray-1.0.2.tar.gz
Size 12.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d527b6cd2e5fcb2e746c703c95ce2ec555f91d7252c25cf09c347e179388e640
BLAKE2b-256 checksum
How to use checksums
63a817d724a3be4adfadfa0c9e604412152b07f942e4b7298cb8e1c2b78bbda4
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.2-py3-none-any.whl

Download URL battery_tray-1.0.2-py3-none-any.whl
Size 13.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
23f8556272de7255a2463f1345f4cfaf845c28c4f0b57128a7ba0c61cd48cda9
BLAKE2b-256 checksum
How to use checksums
f6bc01a5a02a116e88e5de967028b06f71c46e7487ed44a22307c3a62f8e97e9
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.2

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