Bug 513288

Summary: Add window rule to minimize app to tray
Product: [Plasma] kwin Reporter: Thomas Bertels <tbertels>
Component: rulesAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: isma.af, kde
Priority: NOR    
Version First Reported In: 6.5.3   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=421682
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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.