Skip to main content

Hide any program's window and create a tray icon for it.

Project description

Trayifier

A small windows utility to hide any application's window and create a tray icon for it. Mostly it is meant to tack on a tray icon and minimize-to-tray function to software that doesn't come with that option.

Installation

Trayifier is strictly a windows utility. It may be installed via pip: pip install trayifier

You may also download the compiled executable here.

How to Run Trayifier

There are multiple ways to run Trayifier:

  • Install Trayifier via pip and execute it via trayify -f path\to\exe, either via the terminal or via a script or shortcut. This will also work via trayify -f path\to\directory\with\one\exe if there is exactly one executable in that directory other than Trayifier itself.
  • Run trayify without specifying an executable, Trayifier will check if there is a single executable other than itself in the current working directory and just run that.
  • Put the compiled executable into a directory that contains exactly one executable other than Trayifier itself, and run it without any additional arguments. Trayifier will then automatically choose that other executable to run.

If you want the tray icon to be something specific, create an .ico file of the same name as the executable you want to run and place it in the same directory, for example: Run-me.exe for the executable and Run-me.ico for its icon file, located right next to each other. If no icon file is present or it can't be read, Trayifier will attempt to extract an icon from the executable file itself, and if that fails, the standard Python icon will be used instead.

Behaviour of Trayifier

Trayifier will run the target application and create a tray icon for it. Either double-clicking the icon or right-clicking and then choosing Toggle will hide and bring the window up again, respectively. When Exit is chosen from the menu, Trayifier will attempt to close the application via a SIGTERM signal.

Known Issues

  • It is not currently possible to pass arguments to the trayified application.

Possible Future Improvements

  • Add a mode to bring up a mechanism to choose an already open window to add a tray icon to.
  • Detect when the window is getting minimized and offer actual minimize-to-tray functionality.

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

Trayifier-1.2.1.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

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

Trayifier-1.2.1-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

Details for the file Trayifier-1.2.1.tar.gz.

File metadata

  • Download URL: Trayifier-1.2.1.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for Trayifier-1.2.1.tar.gz
Algorithm Hash digest
SHA256 0acff6723e41e09c2ff09fc3d987845f414e37dbf5a16ea95079a9ab4530fb35
MD5 2695e34abc780fc6f2518a5fae271d3f
BLAKE2b-256 e45d87732245edf494b11cfd572895df5d43777aae0268ee71a602691fa48930

See more details on using hashes here.

File details

Details for the file Trayifier-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: Trayifier-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 14.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for Trayifier-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c60f36261b07f2b20869ffb2a26ccf9b22f3c4d31c843b0c573e91ab99b6ccca
MD5 b3e34e437f994fb2daa2c8a4ffd05ad7
BLAKE2b-256 ebde08e1ae7a4dd974c5da5af29332f37321f0f07392e729439f1a617358af48

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