# Minimize to tray feature for arbitrary app

**URL:** <https://discuss.kde.org/t/minimize-to-tray-feature-for-arbitrary-app/27808>\
**Category:** Sponsored Work\
**Created:** [January 4, 2025, 1:12pm UTC](https://discuss.kde.org/t/minimize-to-tray-feature-for-arbitrary-app/27808 "2025-01-04T13:12:10Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![luisbocanegra](https://discuss-cdn.kde.org/user_avatar/discuss.kde.org/luisbocanegra/32/2730_2.png) [@luisbocanegra](https://discuss.kde.org/u/luisbocanegra)\
**Post date:** [March 21, 2025, 3:51pm UTC](https://discuss.kde.org/t/minimize-to-tray-feature-for-arbitrary-app/27808/2 "2025-03-21T15:51:12Z")

</div>

I started working on a third party KWin script [GitHub - luisbocanegra/kwin-minimize2tray: Hide windows to the system tray, similar to KDocker but in the form of a KWin Script that works on Wayland](https://github.com/luisbocanegra/kwin-minimize2tray)

> Minimized app has no Task Manager icon

Currently works like that

> No ‘support’ from app itself. It should be possible to apply this for any app like KCalc or firefox. All apps including non-Qt. I think it’s fine to have it for Wayland apps only but I don’t see why X11 apps can’t work same way. But no need to support X11 session (Kdocker still works)

Works for any window, not grouping per app, each window gets its own tray icon

> Popup menu may just show usual window decoration items.

Just the basics for now

 ![preview](https://discuss-cdn.kde.org/uploads/default/original/3X/c/1/c157133a670b62dd3b9dae7ea67fd90447cdc1e3.png)

> Ability to assign global hotkey to restore app (if it’s standard `StatusNotifierItem` then it already can be scripted).

Not yet, no idea how or if possible

> Huge plus: ability to change item visibility in usual tray settings including ‘requires attention’ feature.

Seems doable

> Huge plus: catch “close window” button/shortcut and minimize to tray instead.

Not sure if the KWin scripting API allows this, will have to try

---

_[View the full topic](https://discuss.kde.org/t/minimize-to-tray-feature-for-arbitrary-app/27808)._
