Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fboender/multitray
https://github.com/fboender/multitray
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fboender/multitray
- Owner: fboender
- License: mit
- Created: 2022-06-23T06:56:00.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-09T14:55:22.000Z (11 months ago)
- Last Synced: 2024-02-09T16:05:26.044Z (11 months ago)
- Language: Python
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MultiTray
MultiTray is a simple Python script for showing one or more desktop system
tray icons. You can easily change the tray icons from the commandline or
shell scripts by writing instructions to a named fifo pipe (special file on
disk).# Usage
usage: multitray [-h] [--version] [-v] [-p PIPEPATH]
optional arguments:
-h, --help show this help message and exit
--version show program's version number and exit
-v, --verbose Verbosity. May be specified multiple times (-vvv)
-p PIPEPATH, --pipepath PIPEPATH
Path to put the named pipe in.Start MultiTray:
$ ./multitray.py
A FIFO named pipe will appear:
$ ls -l
total 8
prw------- 1 fboender fboender 0 Jun 23 08:44 multitray.fifo
-rwxr-xr-x 1 fboender fboender 5143 Jun 23 08:44 multitray.pyYou can write text to this pipe to modify the tray icons. The format is:
The `TRAY_NAME` uniquely identifies each separate tray. There's no need to
create the trays, they'll be automatically created if they don't exist yet.Examples:
# Create a tray with name "myfirsticon" and set it's icon to a green PNG
# image.
$ echo "myfirsticon set-icon /home/fboender/icons/green.png" > multitray.fifo# Change the icon to red and add a tooltip
$ echo "myfirsticon set-icon /home/fboender/icons/red.png" > multitray.fifo
$ echo "myfirsticon set-tooltip The flobulator is not cromulent" > multitray.fifo# Hide the icon
$ echo "myfirsticon hide" > multitray.fifo# Show the icon
$ echo "myfirsticon show" > multitray.fifo# Remove the icon
$ echo "myfirsticon remove" > multitray.fifo