DankMaterialShell icon indicating copy to clipboard operation
DankMaterialShell copied to clipboard

[Feature] Minimize Windows (Implementation included)

Open knuxyl opened this issue 4 months ago • 4 comments

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

knuxyl avatar Jul 14 '26 23:07 knuxyl

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

bbedward avatar Jul 15 '26 00:07 bbedward

And what about in niri (like a way to implement "minimize" but in the compositor itself or in dms)

kernelRedmi9a avatar Jul 16 '26 00:07 kernelRedmi9a

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.

bbedward avatar Jul 16 '26 02:07 bbedward

Fully implemented in b0b9b6159325312b9a483727782640b9a6f46826

bbedward avatar Aug 09 '26 21:08 bbedward