При сворачивании большинство программ сворачиваются в панель задач, отдельные — в трей или область уведомлений Windows (причем даже при нажатии кнопки закрытия программы), в некоторых программах вариант сворачивания можно выбрать в настройках поведения программы, но далеко не во всех предусмотрена такая возможность.
Однако, при желании, с помощью сторонних утилит можно сворачивать любые программы в трей Windows 10 или предыдущих версий ОС. В этом обзоре — несколько программ, позволяющие это реализовать. Также может быть полезным: Как сделать программу поверх всех окон.
- RBTray
- Traymond
- MinimizeToTray
- Видео
RBTray
RBTray — вероятно, самая простая программа для сворачивания других программ Windows 10 в трей. Достаточно просто запустить утилиту, она не покажет никакого окна, но будет работать в фоновом режиме. Сразу после этого почти любую программу можно свернуть в область уведомлений нажатием правой кнопки мыши по кнопке «Свернуть» в строке заголовка. Сворачиваются даже окна проводника (но не совсем правильно работает сворачивание приложений из магазина Windows Store — они остаются на панели задач).
Для того, чтобы вновь развернуть программу — просто нажимаем по её значку в области уведомлений.
Чтобы закрыть RBTray нажмите правой кнопкой мыши по значку любой программы, свёрнутой в трей и выберите пункт «Exit RBTray». Чтобы не запускать каждый раз RBTray, вы можете добавить программу в автозагрузку Windows 10.
Официальная страница, на которой можно скачать RBTray — https://sourceforge.net/projects/rbtray/, программа не требует установки на компьютер: достаточно распаковать архив и запустить исполняемый файл, чтобы она заработала.
Traymond
Ещё одна программа для тех же целей — бесплатная утилита с открытым исходным кодом Traymond, доступная на скачивания со страницы https://github.com/fcFn/traymond/releases. Для запуска программе может потребоваться установка библиотек Visual C++ x86 (2015-2019).
Работает она почти так же, как и предыдущий вариант: запускаем программу (она добавляет свой собственный значок в трей Windows), после чего для работы можно использовать следующие сочетания клавиш и мышь:
- Win+Shift+Z — сворачивает активное окно в область уведомлений (трей) Windows
- Двойной клик по значку в трее — развернуть окно.
- Правый клик по иконке Traymond и выбор «Restore all windows» разворачивает все ранее свёрнутые окна.
MinimizeToTray
И последняя в этом небольшом обзоре схожая утилита — MinimizeToTray, доступная для загрузки на странице https://github.com/sandwichdoge/MinimizeToTray/releases. Но работает она слегка иначе: вместо того, чтобы создавать значки для каждой свёрнутой программы, все они доступны в списке по нажатию на значок MinimizeToTray, как на изображении ниже.
По умолчанию, после запуска программы вы можете использовать следующие комбинации клавиш:
- Alt + F1 — свернуть текущее окно в трей.
- Alt + F2 — восстановить последнее свёрнутое окно.
- F10 — развернуть все свёрнутые окна.
Но при желании эти сочетания можно изменить: нажимаем по значку программы, выбираем пункт «Configs» и назначаем нужные сочетания клавиш. Также как и предыдущие утилиты, с приложениями UWP для Windows 10 утилита работает не так, как ожидается.
Видео
Возможно, у вас есть собственные находки для этих целей? Будет отлично, если вы сможете поделиться ими в комментариях.
Finestray
Finestray (pronounced fin-es-tray) is a program that can minimize windows to the system tray area (typically bottom
right corner, formally known as the «notification area») of the Windows desktop. This is useful if you want to have a
window not be visible, and also not show in the taskbar (the usual behavior when a window is minimized) in order to
reduce visual clutter.
Note
This is a pre-release version, so it will likely have problems. Please report any
issues that you find.
Installation
There are three standard ways to get Finestray:
- Using the installer from the Finestray release page. It’s named
Finestray-0.3-Win64.exe.
Once you have downloaded the file, you will need to run it and go through the prompts to complete the installation.
After installation completes, Finestray should launch automatically. - Using the portable executable from Finestray release page. The
portable executable is named
Finestray.exe. Place it wherever you
prefer on your system, and run it from there. - Using winget. From a Windows shell (e.g. Command Prompt or Powershell):
winget install finestray
. After
installation completes, Finestray should launch automatically.
Basic Operation
The first time Finestray starts (whenever you don’t have any saved settings), it should display the
Settings window.
Whenever you run Finestray, it will add an icon for itself to your tray. The icon looks like this:
Finestray supports a number of features to help you control when to minimize windows to the tray and restore them back
to their normal placement:
-
Minimize hotkey:
First select a window, then press the configurable hotkey (typically Alt+Ctrl+Shift+Down) to minimize the window to
the tray. -
Restore hotkey:
Press the configurable hotkey (typically Alt+Ctrl+Shift+Up), and the most recent window that was minimized to tray
will be restored to its prior location. -
Restore all hotkey:
Press the configurable hotkey (typically Alt+Ctrl+Shift+Left), and all of the minimized windows will be restored to
their prior locations. -
Menu hotkey:
Press the configurable hotkey (typically Alt+Ctrl+Shift+Home) to show the Context menu. -
Override modifier:
Press and hold the configurable key combination (typically Alt+Ctrl+Shift), and then click on the minimize button of a
window to minimize it to the tray. See the Auto-tray settings section for additional
functionality of the override modifier. -
Tray Icons:
If you click on the main tray icon for Finestray itself, it will show the Settings window, and if you
click it again it will hide the Settings window.For any window that has been minimized to an icon in the tray, simply click the icon to restore it to its original
location. -
Auto-trays:
This feature allows specific windows to be minimized to the tray as soon as they appear or when they are minimized.
Please see the Auto-tray Settings section for more information. -
Context menu:
For any of the tray icons created by Finestray, including its own, you can right click on it to see the
Context menu.
Context Menu
The context menu is accessible by right clicking on any of the tray icons that Finestray creates, or by activating the
associated hotkey. When shown, the context menu looks like this, but it could have more items depending on various
factors:
From the context menu, you can select one of the menu items:
- Finestray:
Shows a some basic information about Finestray. - Minimize all
Minimizes all windows to the tray. This menu item will only be available if there are un-minimized windows. - Restore all
Restores all minimized windows to their original states. This menu item will only be available if there are minimized
windows. - Settings:
Shows the Settings window. - Exit:
Exits the Finestray application.
If your Minimize placement
is set to Menu
or Tray and Menu
, then minimized windows will be listed in the context
menu. You can click on these items to restore the corresponding window to its original location.
If Show windows in menu
is enabled, then non-minimized windows will be listed in the context menu, and you can click
on these items to minimize the corresponding window to the tray.
Settings
To change the default behavior of Finestray, you can modify its settings. To open the Settings window, right click on
any of the icons in the tray the belong to Finestray, and select Settings, or just click once on the main Finestray tray
icon.
The available settings correspond to some of the above features. The settings are:
- Start with windows:
This toggles whether Finestray is launched when you start Windows. This creates a shortcut link located in your
startup folder (shell:Startup
, typically
C:\Users\Your-Name\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
) which which launches the Finestray
executable. - Show windows in menu:
This toggles whether Finestray will add entries in the Context menu for windows that are not
minimized. - Enable log file:
This toggles whether Finestray saves logging information to a file or not. If enabled, Finestray first tries to save
the log file to%LOCALAPPDATA%\\Finestray\\Finestray.log
, and if that’s not possible it saves in the same location
as the Finestray application. - Minimize placement:
This controls where to place minimized windows minimized using Finestray. The choices are:- Tray: the window will get an icon in the tray.
- Menu: the window will get an entry in the context menu.
- Tray and Menu: the window will get an icon in the tray and an entry in the context menu.
- Minimize hotkey:
This lets you configure the hotkey that is used to minimize a window to the tray. Please see the
Modifiers and Hotkeys section for more information. - Minimize all hotkey:
This lets you configure the hotkey that is used to minimize all window to the tray. Please see the
Modifiers and Hotkeys section for more information. - Restore hotkey:
This lets you configure the hotkey that is used to restore a window to it’s original state. Please see the
Modifiers and Hotkeys section for more information. - Restore all hotkey:
This lets you configure the hotkey that is used to restore all windows to their original state. Please see the
Modifiers and Hotkeys section for more information. - Menu hotkey:
This lets you configure the hotkey that is used to show the Context menu. Please see the
Modifiers and Hotkeys section for more information. - Override modifier:
This lets you configure the modifier that is used to override some Finestray behavior. Please see the
Modifiers and Hotkeys section for more information. - Poll interval:
Finestray needs to periodically check all the open windows for the auto-tray feature to work. This setting controls
how frequently that check is done. The value is in milliseconds, so1000
means one thousand milliseconds, which is
one second, and with that setting Finestray would scan the windows once every second. You can increase the value if
you think Finestray is checking too often and slowing down your system. You can decrease the value if want the
auto-tray behavior to happen more rapidly. You can also set this to zero to disable scanning, but that will disable
the auto-tray behavior when a window first opens. - Auto-trays:
This lets you configure the list of auto-tray values that are used to control automatically minimizing specific
windows to the tray. Items can be added to the list by pressing the Add button, removed from the list by pressing the
Delete button, or modified by selecting an item, entering new values into the fields, and pressing the Update button.
Please see the Auto-Tray Settings section for more information.
At the bottom of the Settings dialog are six buttons: Help, About, Reset, Exit, Cancel, and OK:
- Help:
Opens the Finestray project web page to display this document. - About:
Shows a some basic information about Finestray. - Reset:
Resets all the settings to their default values. - Exit:
Exits the Finestray application after saving settings. - Cancel:
Closes the Settings window but does not save settings (settings are restored to their previous values). - OK:
Closes the Settings window and saves settings.
Settings are automatically stored in a file called «Finestray.json». Finestray first tries to save them to
%LOCALAPPDATA%\\Finestray\\Finestray.json
, and if that’s not possible it saves them in the same location as the
Finestray application.
Modifiers and Hotkeys
Modifier choices: alt
, ctrl
, shift
, win
Key choices: back
, esc
, f1
, f2
, f3
, f4
, f5
, f6
, f7
, f8
, f9
, f10
, f11
, f12
, f13
, f14
,
f15
, f16
, f17
, f18
, f19
, f20
, f21
, f22
, f23
, f24
, tab
, left
, right
, up
, down
, space
,
home
, end
, ins
, del
, letters, numbers, and punctuation.
For the override modifier, you can provide one or more modifiers using spaces in between. For example you could provide
a modifier alt
, or a modifier ctrl shift
.
Similarly, for the minimize, minimize all, restore, restore all, and menu hotkeys, you can combine a set of modifiers
together with a single key. So for example, you could combine the modifier alt win
with the key esc
to make a hotkey
alt win esc
. Or you could combine a modifier ctrl win
with the key -
to make a hotkey ctrl win -
.
You can also leave a hotkey or modifier empty or specify none
to disable it.
Auto-tray settings
The auto-tray settings are a list of items that each identify a window that you would like to automatically be minimized
to the tray when it opens, and when you minimize it. The complication is that it’s often not trivial to identify a
window. Because of this, Finestray provides three possible ways, which can be used in combination, to identify a window:
- Window class:
This value corresponds to the «class» of the window. The class is an internal value, which you can find using the
Spy feature. The class you provide must exactly match the internal value, or you can leave this empty
if you don’t care what the window class is. - Executable name:
This value corresponds to program the created the window. Provide the full path to the executable, for example
C:\Windows\notepad.exe
. This must match (case insensitive) the full path of the executable that owns the window, or
you can leave this empty if you don’t care which executable created the window. - Window title:
This typically corresponds to the text at the top of the window in the title bar, or shown in the taskbar. The value
is provided as a regular expression. If you aren’t familiar with regular
expressions, they are much too complicated to explain here, but just as an example, to match the Notepad window which
has a title like «Untitled — Notepad», you could use a regular expression like:.* - Notepad$
.
Auto-tray event options:
- Open:
Select this option if you want the specified auto-tray window to minimize to the tray when it opens, or when Finestray
launches and the window is already open. - Minimize:
Select this option if you want the specified auto-tray window to minimize to the tray when it is minimized. - Open and Minimize
Select this option if you want the specified auto-tray window to minimize to the tray both when it opens, and when it
is minimized.
Note that the Override modifier also has an effect on auto-trays. It overrides the normal auto-tray behavior. For
example, if you are holding down the override modifier keys when a window is created, it will prevent the normal
auto-tray behavior from happening. If you minimize an auto-tray window while holding the override modifier keys, the
window will minimize the standard way instead of to the tray.
Spy feature
If you want to use the Auto-tray feature but don’t know the executable, class, or title of a window, or just would like
help filling those values, you can use the Spy feature. To use it, first open the Settings window, find the
crosshair icon next to the text that says «Spy (drag this):», and use your mouse to drag that icon onto the window that
you want to obtain the executable, class, and title of. As you drag the crosshair around, the settings window should be
updated with information about each window you move it over, and when you release the mouse button then the crosshair
icon will return to its original position, and the values in the settings should stay filled in with whatever window you
last dragged on top of. You can modify the values if you like, or leave them alone, and then press the Add button to
create a new Auto-tray item for that window.
If the Spy feature doesn’t work for you, alternatively you can use another tool like
Window Spy or
Spy++ which provide more advanced
window identification features.
Limitations
Unfortunately, Finestray can not currently minimize all windows to the tray. Some software creates windows that do not
adhere to the typical behavior for minimizing. For example, apps obtained from the Windows Store may not be compatible
with Finestray.
Legal
Copyright © 2020 Benbuck Nason
Finestray is distributed under the Apache License, Version 2.0.
Please see the privacy policy for information about privacy concerns.
Finestray uses the cJSON library for JSON parsing.
Finestray uses some Google Noto Emoji for image artwork.
Microsoft Windows may not be as tweakable as Linux, but it is fairly customizable. This includes even the simplest and seemingly most trivial stuff that might seem engraved into Microsoft’s latest OS. In truth, if you don’t know where to look, Windows may get a bit overwhelming, but knowing how to set up and use stuff like the taskbar and the system tray properly can show you that staying in control is easily achievable.
You probably know all about the system tray in windows, but did you know that you can make almost any program and windows keep working in the tray? If you didn’t know about this cool customization option, you won’t be able to get enough of it.
Take a Load off the Taskbar
So, as you know, by default, when you minimize a program or a window, it ends up in the taskbar. Once it is minimized, a window can be easily restored via a simple mouse click (or screen tap). As a Windows user, however, you probably already know how quickly the taskbar can fill up – almost as quickly as the browser tabs pile up.
Minimizing some (or all) apps to your system tray area (next to the clock, you know the one) can help a lot here. Don’t let Windows decide your preferences for you, learn how to do it yourself!
Download an App
Unfortunately, this feature is not built into Windows. But workarounds do exist. Here are some useful apps that will help you take the load off your taskbar:
- RBTray – Fairly lightweight and simple to use. Once installed, double-clicking on it will turn it on in the background. Simple as that.
- MinimizeToTray – This one takes some configuration, but the options that it offers are more than worth it. For one, you can make a list of apps that you want to minimize to tray. The others will still minimize to the taskbar, which is pretty awesome for avoiding virtual workspace clutter.
Minimizing an app or window to tray has unique benefits that can directly reflect upon your work performance or that of your own PC. Make no mistake, minimizing to tray can benefit both people who rely heavily on computers for their work, as well as those who use the PC in a more casual manner.
Work Computers
If you mostly work on a PC, chances are that the virtual workspace clutter is a huge problem for you. Even if you have two or more screens connected, the minimized icon clutter can hinder your productivity or reflect upon your work negatively in some other way.
On the other hand, and this is especially true if your work is based on using software that isn’t forgiving to your hardware, minimizing to the tray can and will make your PC work faster. Minimizing apps to the tray will reduce their impact on your system.
Casual Use
As a casual PC user, or someone whose work only partly relies on working on a computer, you might not care about minimizing clutter all that much. But it wouldn’t hurt to keep your computer in tip-top shape and performing at 100% at all times, regardless of you do.
Well, minimized windows are only that – minimized. They continue to burden your CPU and RAM.
This is especially important for the gaming crowd. You may not care about the aesthetics of having lots of opened window, but when your game starts stuttering and lagging, you’ll welcome the option to minimize to the system tray.
Minimize Your Browser Windows
While the mentioned apps are pretty neat, but if the majority of your work revolves around browsing the web, you don’t really need the apps to begin with. Did you know that you can minimize both Firefox and Chrome to the tray using cool extensions for each of the two browsers? You can do exactly that, which is especially awesome for those who aren’t fans of downloading third-party apps to their computers.
Final Thoughts: the Taskbar or the Tray?
It’s up to you, really, but why use only one of the two minimizing solutions? When combined, the two can turn into real clutter breakers, so use them together to make your work go smoothly. Here’s an idea: use the taskbar for apps that aren’t too taxing on your CPU and RAM, and assign the more demanding software to the tray.
Do you have any other cool combos that can help people make the most of their virtual desktops? How do you use the tray-taskbar combo? Feel free to post your own desktop productivity tips and tricks in the comments section below!
In today’s digital age, effective management of applications is crucial for enhancing productivity and maintaining an organized workspace. One particularly useful feature that many modern operating systems and applications support is the ability to minimize application windows to the system tray, also known as the notification area. This feature not only conserves screen space but also provides seamless access to applications running in the background, allowing individuals to multitask efficiently. In this article, we will explore the concept of minimizing applications to the system tray, its advantages, how it works, common apps supporting this feature, as well as troubleshooting tips and alternatives.
Understanding the System Tray
The system tray or notification area is a section of the taskbar, typically located at the bottom right corner of the Windows desktop, that houses various icons for running applications, system notifications, and quick access to certain features. This area is designed to keep your desktop clutter to a minimum while still providing quick access to vital application functionalities.
Historical Context
Before delving deeper into minimizing applications to the system tray, it is essential to understand the evolution of this concept. The system tray has its roots in early graphical user interfaces (GUIs) of operating systems like Windows and macOS, where it served as a space for active background applications, system notifications, and quick-launch utilities. Over time, its role evolved, becoming an integral aspect of workflow for users, especially in managing applications that may not require constant attention.
Benefits of Minimizing Applications to the System Tray
Minimizing applications to the system tray offers a myriad of benefits, which significantly contribute to an enhanced user experience:
1. Reduced Clutter
By minimizing applications to the system tray, users can reduce the number of open windows on their desktop. This decluttering leads to a more organized digital workspace, making it easier to focus on current tasks without being distracted by numerous background windows.
2. Improved Productivity
When applications can operate in the system tray, users can quickly access them without switching windows constantly. This is especially beneficial for applications that run in the background, such as messaging apps, email clients, or download managers, thereby improving workflow efficiency.
3. Quick Access to Notifications
Applications that minimize to the system tray often leverage this space to provide real-time notifications. This allows users to receive alerts and updates without the need for the application window to be open, thereby keeping them informed while they continue with other tasks.
4. Resource Management
Minimizing applications to the tray can sometimes help free up system resources. While the application remains running in the background, it may use fewer CPU resources when minimized compared to being actively displayed in a window.
5. Discreet Operation
Many users prefer to operate certain applications discreetly. For instance, communication tools (like Slack or Discord) often prioritize minimizing to the tray to avoid distractions during work hours. This kind of discrete operation maintains a professional appearance in open or shared environments.
How It Works
Minimizing an application to the system tray involves specific processes that are handled by both the operating system and the application itself. The concept is relatively straightforward, but it requires effective integration between user actions and system responses.
1. Application Design
For an application to minimize to the system tray, it must be designed with this feature in mind. The developer embeds functionality that allows the application to handle different states, including normal, minimized, and tray-minimized. When a user selects the minimize option, the application invokes a command that sends the graphical user interface (GUI) to the system tray rather than closing it.
2. System Tray Interaction
Once minimized, the application communicates with the system tray, which allocates space for its icon. This icon may represent the application and often provides visual indicators for status changes or notification alerts. Users can click on the icon to restore the window or access context menus for additional options.
3. Contextual Menus and Notifications
Beyond simple icon representation, many applications offer contextual menus when the icon is right-clicked, providing quick actions without the need to restore the main window. Additionally, pop-up notifications can alert users to new messages, updates, or events in real time.
Common Applications That Support Minimized Tray Functionality
Many applications across various categories utilize system tray minimization. Here are some common examples:
1. Instant Messaging and Communication Tools
Applications such as Skype, Slack, and Microsoft Teams can be minimized to the system tray, allowing users to stay connected without having the application window distracting them from their primary tasks.
2. Email Clients
Popular email clients like Microsoft Outlook and Thunderbird provide users with the option to minimize their interface to the tray, allowing users to receive notifications about new messages without cluttering their workspace.
3. System Utilities
Utilities that focus on system monitoring, like antivirus software, backup solutions, and performance monitors often reside in the system tray. These applications benefit from keeping a low profile while offering quick access to their features when needed.
4. Media Players
Certain media players enable users to minimize their interface to the tray while still playing audio or video in the background, allowing users to enjoy media without it interfering with their tasks.
5. File Transfer and Download Managers
Download managers can help users minimize their applications to the system tray, ensuring that downloading processes are tracked without requiring constant window monitoring.
Enabling Minimize to Tray Functionality
The process for enabling the minimization of application windows to the system tray can vary depending on the operating system and application. Here, we will cover how you can enable this feature on Windows-based systems along with some popular applications.
Windows 10/11
While Windows does not have a built-in global setting for all applications, many applications come with individual options. Here’s a generic guideline:
- Right-click on the application icon: Open the application and locate its icon in the top corner or in the taskbar.
- Look for settings/options: Access the settings or preferences panel, usually found in the menu represented by three dots or a gear symbol.
- Enable Minimize to Tray: Within the preferences, locate the option to minimize to tray or notification area and enable it as desired.
Popular Applications
1. Slack
For Slack to minimize to the tray:
- Open Slack, go to Preferences > Advanced.
- Check «Minimize to tray.»
2. Discord
For Discord:
- Open Discord, navigate to User Settings > Windows Settings.
- Toggle “Minimize to Tray” on.
3. Microsoft Outlook
Outlook can be configured as follows:
- Go to File > Options.
- In the Advanced tab, uncheck «Close the application when it’s minimized.»
Troubleshooting Minimize to Tray Issues
At times, users may encounter issues with applications failing to minimize to the system tray or disappearing completely. Here are some common problems and their solutions:
1. Application Not Minimized to Tray
- Check Application Settings: Ensure that the setting to minimize to tray is enabled in the application’s preferences.
- Consistent Updates: Verify that the application is up to date. Developers may release patches to fix bugs, including minimizing issues.
2. Missing Tray Icon
- Restart the Application: Sometimes, restarting the application can resolve the issue.
- System Tray Settings: Check Windows settings to ensure that the icon is not hidden. Right-click the taskbar, select Taskbar Settings, and review the area to ensure the application is allowed to show its icon.
3. Notification Issues
- Check Notification Settings: Navigate to the application’s settings to ensure that notifications are enabled.
- Operating System Settings: In Windows, go to Settings > System > Notifications & actions to manage app notifications.
Alternatives to System Tray Minimize
If minimizing applications to the tray is not meeting your needs or if certain applications do not support this function, there are alternatives you can consider:
1. Virtual Desktops
Both Windows and macOS support virtual desktops, which allow users to create multiple desktops for different tasks. This way, users can easily switch between applications without cluttering their workspace.
2. Third-Party Applications
Several third-party applications assist in managing windows effectively, including:
- TrayIt!: This application allows users to minimize any window to the tray and can be useful when working with programs that do not have built-in functionality.
- RBTray: Similar to TrayIt!, RBTray allows users to minimize any window to the tray by right-clicking the minimize button.
3. Keyboard Shortcuts
Using keyboard shortcuts can significantly increase your efficiency. Learn the shortcuts for minimizing windows and switching between applications to enhance your productivity without relying solely on tray functionality.
4. Taskbar Grouping
Consider using the grouping feature in the taskbar. Windows allows users to group similar applications together for quick access, giving an organized look to the taskbar without requiring minimum-to-tray functionalities.
Conclusion
Minimizing applications to the system tray or notification area maximizes productivity by enabling users to manage their workspace efficiently while maintaining access to vital applications. The feature has profound implications for multitasking, organization, and resource management, fitting seamlessly into modern workflows. As applications continue to evolve and develop new functionalities, it is essential that users remain aware of how best to use them to their advantage.
Understanding the benefits and methods of utilizing minimize-to-tray functionality can lead to a more streamlined digital experience. As users integrate this capability into their daily routines, they can cultivate efficient habits that enhance their productivity and keep their workspaces organized. With the increasing variety of applications available that support this feature, it is an important tool for anyone looking to optimize their user experience in the digital era.
This program minimizes an application to the Windows taskbar notification area (also informally known as the system tray).
This might be useful for long-running programs that you are happy to leave in the background and forget about.
This is designed to be scriptable – if you want something more interactive/point-and-click, you might prefer: RBTray.
Download
Download the utility from:
- Releases.
The source code is available at:
- github.com/danielgjackson/minimize-to-tray
…and released under an open source MIT License.
Usage
Usage:
minimize-to-tray [/MIN|/NOMIN] [/NOTIFY|/NONOTIFY] "title"|"*suffix"|"prefix*"|"*substring*"
Where:
/MIN
— immediately hides the window (default)./NOMIN
— does not immediately hide the window (waits until you to manually minimize it)./NOTIFY
— alerts the user that the window has been minimized to the notification area./NONOTIFY
— does not alert when minimized."title"
— a window title to find by exact match (e.g."Calculator"
find a window with exactly that title)."*suffix"
— search for a matching suffix by placing an asterisk before the title (e.g."*Notepad"
matches"Untitled - Notepad"
)."prefix*"
— search for a matching prefix by placing an asterisk after the title (e.g."Signal*"
matches"Signal (1)"
)."*substring*"
— search for any matching part within the title by placing an asterisk either side (e.g."*watch*"
matches"C:\WINDOWS\system32\cmd.exe - wsl watch ps"
).
Effect:
- The window that has a title matching the given suffix will appear to be minimized as an icon in the taskbar notification area (system tray).
- The notification icon and tooltip should match the window’s icon and title.
- Left-clicking on the notification icon restores the window.
- When you minimize the window yourself, it will disappear back to the taskbar notification area.
- Right-clicking on the notification icon shows a menu:
- Restore — restores the minimized window. When you minimize it again, it will return to the notification area.
- Close — sends the window a close signal (it restores it first in case it needs to show UI).
- Stop Hiding — takes the window out of the notification area (it will now be minimized normally) and does not track any future minimizes. This closes this utility for that window.
Troubleshooting
-
Some windows (e.g. modern UWP apps from Windows Store) don’t properly give their icon through the standard API, so a default one from the app is used.
-
If using a terminal, your current command could be used as the window’s title, so it could match the window being found – just place a space after the command, or put the title in quotes to prevent this.
-
The window must exist before running the utility, so you may need delay during any automated scripts. If using a batch file, you could try something like:
CHOICE /C 0 /D 0 /T 5 >NUL
-
You should not need to, but if you have any issues where your application does not automatically go back to the tray when it is later minimized, you can force a hacky polling mode with the option
/POLL
. -
If there are any old instances of this tool running, you can clean them up by running the following (do not use the ‘force’ mode as any tracked application windows will stay hidden!):
taskkill /im minimize-to-tray.exe
-
Additional output for debugging can be seen with these options (which must be the first option given):
/CONSOLE:ATTACH
— attach stdio to the parent console/CONSOLE:CREATE
— create a console (if ‘attach’ also specified, then only if that fails)/CONSOLE:ATTACH-CREATE
— attach stdio to the parent console but, if that fails, create a console
-
If the history of the taskbar notification area (Taskbar settings / Select which icons appear on the taskbar) becomes too polluted with old entries, you can manually clear the cache with the following command (WARNING: this restarts Windows Explorer so you may lose some Explorer windows):
reg delete "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify" /v PastIconsStream /f && taskkill /im explorer.exe /f && start "Restarting" /d "%systemroot%" /i /normal explorer.exe
- danielgjackson.github.io/minimize-to-tray