[Feature] Minimize Windows (Implementation included)
Feature Description
I use LabWC and I wanted minimize support. The bar widget would only focus the application when clicked and wouldn't minimize. I tinkered with the source a little and came up with this. It doesn't seem to have broken any functionality, only adding minimize support. Adding a toggle for this in the widget's setting would probably be best for those not wanting this?
Use Case
Mimick the standardized desktop experience like Mac, Windows, XFCE, Mate, Cinnamon, etc.
Compositor(s)
Other (specify below)
If Other, please specify
Floating window managers, ie LabWC
Proposed Solution
There are two instances that need to be replaced inside if (mouse.button === QT.LeftButton) { scope.
They are around lines 396 and 657.
Modules/DankBar/Widgets/RunningApps.qml
} else if (toplevelObject) { if (toplevelObject.minimized) { toplevelObject.minimized = false; toplevelObject.activate(); } else if (toplevelObject.activated) { toplevelObject.minimized = true; } else { toplevelObject.activate(); } }
Alternatives/Existing Solutions
No response
I'm going to do the basic built-in CSD support in dankcalendar first, across the new common repos dank-qml-common and dankgo and then do it in DMS later with more broad support for the dock and running apps stuff
And what about in niri (like a way to implement "minimize" but in the compositor itself or in dms)
It will be integrated into DMS, and then work with any compositor that supports it (niri does not, nor do any of the mainstream tiling ones afaik). Their philosophies are more about just using more workspaces.
Fully implemented in b0b9b6159325312b9a483727782640b9a6f46826