Bug 513288 - Add window rule to minimize app to tray
Summary: Add window rule to minimize app to tray
Status: RESOLVED INTENTIONAL
Alias: None
Product: kwin
Classification: Plasma
Component: rules (other bugs)
Version First Reported In: 6.5.3
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-12-13 13:13 UTC by Thomas Bertels
Modified: 2025-12-14 23:00 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Bertels 2025-12-13 13:13:19 UTC
SUMMARY
This rule would let the user make some windows minimize to the System Tray widget instead of the Task Manager.

STEPS TO REPRODUCE
1. Open an app
2. Minimize it

OBSERVED RESULT
It minimizes to tray.

EXPECTED RESULT
It minimizes normally.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
KDE Plasma Version: 6.5.3
KDE Frameworks Version: 6.20.0
Qt Version: 6.10.1

ADDITIONAL INFORMATION
The kwin script https://github.com/luisbocanegra/kwin-minimize2tray lets the user minimize apps to tray.
It doesn't support filtering by window title though, which kwin rules already do.
Comment 1 David Edmundson 2025-12-14 23:00:13 UTC
Apps don't minimse to a system tray, they create a system tray and close.

At a kwin level this means completely hiding the window, which is outside the scope of anything window rules should ever support.