Skip to main content

Ubuntu system tray for displaying battery level and providing a system tray menu for launching Stretch tools or help resources.

Project description

Overview

stretch4_tray is an Ubuntu system tray application for displaying battery level and providing a system tray menu for launching Stretch tools or help resources. This package can be installed by:

python3 -m pip install -U hello-robot-stretch4-tray
stretch_tray --install # Installs the linux service to automatically start the tray
stretch_tray --restart # Immediately start the tray

If you do not want to use the linux service, you can just run stretch_tray.

Developing

To develop on this package:

sudo apt update
sudo apt install pkg-config libcairo-dev gir1.2-appindicator3-0.1 libgirepository-2.0-dev

git clone https://github.com/hello-robot/stretch4_tray
cd stretch4_tray

uv venv --system-site-packages --no-managed-python
uv pip install -e .

Managing stretch4_tray Service (Recommended)

The easiest way to run stretch4_tray is as a linux systemd user service.

To install and start the service:

stretch_tray --install

Other available management commands:

  • stretch_tray --status: Check if the service is running and view recent logs
  • stretch_tray --restart: Restart the service
  • stretch_tray --uninstall: Stop and remove the service, and uninstall the Python package
  • stretch_tray --kill: Forcefully stop the service and any dangling processes

To view continuous logs:

journalctl --user -u stretch_tray.service -f

Configuration

On the first run, stretch_tray creates a user-editable configuration file at: $HELLO_FLEET_PATH/$HELLO_FLEET_ID/stretch_tray.yaml

By default, this is a copy of the built-in configuration. You can modify this file to add, remove, or change the tools that appear in the tray and the GUI.

If you want to reset your configuration to the default:

stretch_tray --factory_reset

Edit scripts list

To edit the scripts list that shows up in both the system tray and the GUI, please do the following:

  1. Edit your user configuration file at $HELLO_FLEET_PATH/$HELLO_FLEET_ID/stretch_tray.yaml
  2. Add or modify commands to match the ScriptsConfig data model schema.
    • Please reference the docstrings in ScriptsConfig for details on each field.
  3. Restart the tray: stretch_tray --restart

Project details


Download files

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

Source Distribution

hello_robot_stretch4_tray-2026.7.8.tar.gz (133.9 kB view details)

Uploaded Source

Built Distribution

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

hello_robot_stretch4_tray-2026.7.8-py3-none-any.whl (169.3 kB view details)

Uploaded Python 3

File details

Details for the file hello_robot_stretch4_tray-2026.7.8.tar.gz.

File metadata

  • Download URL: hello_robot_stretch4_tray-2026.7.8.tar.gz
  • Upload date:
  • Size: 133.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for hello_robot_stretch4_tray-2026.7.8.tar.gz
Algorithm Hash digest
SHA256 669c95b3edbd4c40b2ecc43577b1ffacd86af9605200bf6bb726febd631a9687
MD5 6a343368d8608284f7360b5626765a90
BLAKE2b-256 c3230a0fa7c3f453b2cc31620ad9c686bac849d69da35150c623665543e58840

See more details on using hashes here.

File details

Details for the file hello_robot_stretch4_tray-2026.7.8-py3-none-any.whl.

File metadata

  • Download URL: hello_robot_stretch4_tray-2026.7.8-py3-none-any.whl
  • Upload date:
  • Size: 169.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for hello_robot_stretch4_tray-2026.7.8-py3-none-any.whl
Algorithm Hash digest
SHA256 f9f6c3db2632c2ee469e6576a166d22236f4410c8cc39dcc4f0a6fe3c4169dd1
MD5 52df411a56435fd5e5ab629f729e5d3c
BLAKE2b-256 2e2593f9215012174c5bd19f4e84082a942ac3a6697138d71174f80eeb01e6b6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page