DankMaterialShell icon indicating copy to clipboard operation
DankMaterialShell copied to clipboard

Add native Minimize-to-Dock support with keybind and click-to-restore functionality

Open X-Treadway-X opened this issue 2 months ago • 3 comments

Feature Description

Integrate native minimize-to-dock capabilities directly into Dank Linux / Dank Material Shell so users no longer have to rely on external workarounds (such as manually replacing dock files in /run on every boot, based on modified implementations like rollecode/dms-minimize).

Core Technical Requirements & Mechanics:

  • Keybind Minimization: Pressing a designated shortcut minimizes the currently selected program.

  • Dock State (Grayed-Out Icon): When minimized, the application's representation in the dock changes to a muted or grayed-out icon to visually indicate its hidden status.

  • Restoration Methods:

  • Clicking the grayed-out icon directly in the dock brings the window back to its previous state and location.

  • Alternatively, supporting a separate keybind to restore the minimized window.

  • Persistence Issue Context: Because current modifications require injecting files into the volatile /run directory, settings and custom dock/lockscreen overrides (such as removing lockscreen blur to keep wallpapers fully visible) get wiped out and revert to defaults on every system boot or DMS restart. A native solution would prevent these configuration hurdles.

Use Case

This feature is essential for efficient window management and workflow organization. It allows users to declutter their active workspace by stashing running applications into the dock without closing them or losing their desktop placement, providing a quick visual reference of minimized apps that can be instantly restored with a single click or keypress.

Compositor(s)

All compositors

If Other, please specify

No response

Proposed Solution

No response

Alternatives/Existing Solutions

No response

X-Treadway-X avatar Sep 18 '26 15:09 X-Treadway-X

It's dependent on the compositor, DMS is a shell not a window manager. Labwc already supports minimize in both built-in CSDs and the dock.

Beyond that we can't do anything, we arent the compositor/window manager, just software that runs with them.

I mean, it's not even possible to support it - its entirely on the compositor side. We can't manipulate windows or anything that a different process owns.

bbedward avatar Sep 25 '26 01:09 bbedward

Thanks for the clarification. That makes sense regarding DMS being a shell rather than the compositor/window manager.

My main target is specifically Hyprland + DMS. I understand that DMS cannot directly own or manipulate the windows itself.

What I was wondering is whether this could instead be implemented through Hyprland's IPC/window-management functionality, with DMS only handling the dock representation and user interaction.

For example:

DMS Dock
   │
   ├── Minimize button/keybind
   │        │
   │        ▼
   │     Hyprland IPC
   │        │
   │        ▼
   │   Minimize window
   │
   └── Click minimized icon
            │
            ▼
       Hyprland IPC
            │
            ▼
       Restore window

The desired behavior would be:

  • A keybind minimizes the currently focused Hyprland window.
  • DMS shows that application in the dock as minimized/muted.
  • Clicking that dock item restores the window.
  • The window returns to its previous workspace/position/state.
  • Ideally this would be implemented natively rather than relying on external scripts that modify files under /run.

If Hyprland does not currently expose the necessary functionality through IPC, then I understand that the required support would have to be added on the Hyprland side first.

So, for the Hyprland + DMS combination specifically, is the limitation that Hyprland currently does not provide the required minimize/restore functionality through IPC, or is there another compositor-side limitation preventing DMS from doing this?

X-Treadway-X avatar Sep 25 '26 03:09 X-Treadway-X

It's not an IPC with hyprland, it's a core window protocol that is standardized across compositors. Although the functionality isn't broadcast so dms just hardcodes a list of supported ones (only labwc currently)

There might be a hyprland plugin that enabled minimize but I'm not sure, the DMS side of it is already there though

bbedward avatar Sep 25 '26 03:09 bbedward