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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

battery_tray-1.0.1.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

battery_tray-1.0.1-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file battery_tray-1.0.1.tar.gz.

File metadata

  • Download URL: battery_tray-1.0.1.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for battery_tray-1.0.1.tar.gz
Algorithm Hash digest
SHA256 826a0c4b3fbbfdc2c9177f08e406443d20f31062ebc0fcd83c07ce5fc913359e
MD5 9cd62b5a2e2840040381f7ad96bcafd9
BLAKE2b-256 1149db5ee9d38326e08004fed769ee1aa114b1601a51c8385b9475674d9b666e

See more details on using hashes here.

Provenance

The following attestation bundles were made for battery_tray-1.0.1.tar.gz:

Publisher: release.yml on sevaht/battery-tray

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file battery_tray-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: battery_tray-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 13.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for battery_tray-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9d350e9c7414011702f7003783f9bf94d2faa514b834808b55f69b0ed1303621
MD5 67ae842af6c93204deed4a7672f9d144
BLAKE2b-256 9c96183f9f40f50dfa825aac2b29ed827cf86e9a8684ed89037350903a5605d3

See more details on using hashes here.

Provenance

The following attestation bundles were made for battery_tray-1.0.1-py3-none-any.whl:

Publisher: release.yml on sevaht/battery-tray

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 files

1.0.0

2 files

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