Skip to main content

Tool to run and restart commands, so they can be continuously executed. The application can be run from the console or using a tray icon.

Project description

Tray Runner

Tray Runner is a simple application that runs in the system tray and executes periodically the commands configured. This is util when you want to run command line scripts without having a terminal open ow worry to remember to execute them.

The application has been tested on Linux (Ubuntu) and Windows 10, but should run on any modern operating system, as the UI relies on QT.

Main configuration window

Command configuration

Check more screenshots here.

Installation

Python 3.10 or greater is required.

It is recommended to use pipx so you can install Tray Runner and its dependencies without affecting other applications installed with pip:

pipx install tray-runner

Check and upgrade with:

pipx upgrade tray-runner

In a near future, single file binaries will be provided.

Once installed, you can run the application running the command:

tray-runner-gui

Check the options running tray-runner-gui --help. The first time the program is executed, a shortcut in the applications menu and in the auto start directory will be created. Also, you will be asked to configure the application:

First run

Fedora/RHEL based

sudo dnf install -y gnome-shell-extension-appindicator
gnome-extensions enable appindicatorsupport@rgcjonas.gmail.com

Note: the indicator icon will be shown, but the notifications will remain in the notifications list.

Running

From the CLI:

tray-runner-cli --help

From the GUI:

tray-runner-gui --help

TODO

  • Translations (raw Python and QT)
  • One-file executables (and portables) for Linux and Windows
  • Log viewer

Development

Translations

Update the template:

poetry run pybabel extract -o tray_runner/locale/messages.pot

Generate a new language:

poetry run pybabel init -l de_DE -i tray_runner/locale/messages.pot -d tray_runner/locale

Update the languages with the new translations found:

poetry run pybabel update -i tray_runner/locale/messages.pot -d tray_runner/locale

Compile the translations:

poetry run pybabel compile -d tray_runner/locale

Code quality

Running directly the commands:

poetry run pylint tray_runner
poetry run black tray_runner
poetry run mypy tray_runner
poetry run isort tray_runner

Using pre-commit:

git add --intent-to-add .
poetry run pre-commit run --all-files

Credits

More screenshots

List of commands:

List of commands

General configuration:

General configuration

Commands common configuration:

Commands common configuration

Command configuration:

Command configuration

Command overrides:

Command overrides

Command environment variables:

Command environment variables

Command statistics:

Command statistics

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

tray-runner-0.3.5.tar.gz (31.0 kB view details)

Uploaded Source

Built Distribution

tray_runner-0.3.5-py3-none-any.whl (36.9 kB view details)

Uploaded Python 3

File details

Details for the file tray-runner-0.3.5.tar.gz.

File metadata

  • Download URL: tray-runner-0.3.5.tar.gz
  • Upload date:
  • Size: 31.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.4 Linux/5.13.0-1023-azure

File hashes

Hashes for tray-runner-0.3.5.tar.gz
Algorithm Hash digest
SHA256 d9e0eab73b27c346abf77f9df357daa56f0d0e9ef511ffed9b0d03ed1ee8e9ad
MD5 fbf0ae8be5cc9bf1bc42d46bca793850
BLAKE2b-256 56d9dca8ef4a91851d2ecf312bbf9ee05b0e161ad31e041595868bd4b32b4c3e

See more details on using hashes here.

File details

Details for the file tray_runner-0.3.5-py3-none-any.whl.

File metadata

  • Download URL: tray_runner-0.3.5-py3-none-any.whl
  • Upload date:
  • Size: 36.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.4 Linux/5.13.0-1023-azure

File hashes

Hashes for tray_runner-0.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d1e5e974d9d946c6b09dbd98f2a03b134b0cfeeb8aa5abf2544eca99500e16a4
MD5 89078b6bbcf443b0032d2f1ae26b9308
BLAKE2b-256 47509b96eb4c35e95779534e1a3b9c7b0c11d946cc1c78f3705a84bf16bf783e

See more details on using hashes here.

Supported by

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