DankMaterialShell icon indicating copy to clipboard operation
DankMaterialShell copied to clipboard

Feature request: option to show only pinned apps in the dock (hide running apps)

Open yassinely6 opened this issue 3 weeks ago • 5 comments

Feature Description

Add a dock setting to hide running (unpinned) apps, so the dock only shows pinned apps. Other docks have this, for example Plank's "Show Unpinned" toggle.

Suggested behavior:

  • A toggle in Settings → Dock, e.g. "Show running apps".
  • Default: on, so existing setups don't change.
  • When off, the dock shows only pinned apps.

Use Case

I use niri and the Workspace switcher widget to see and switch between open windows. Because the dock also shows running apps, every open app appears twice (see the screenshot below). I only want the dock as a launcher for pinned apps.

I'm happy to test a fix.

[drag your screenshot here, or keep the <img ...> line you already have]

Image

Compositor(s)

Niri

If Other, please specify

No response

Proposed Solution

Add a boolean setting in Settings → Dock, for example "Show running apps".

  • Default: on, so current behavior doesn't change for anyone.
  • When off, the dock lists only pinned apps. Running windows of pinned apps could still show their usual "running" indicator, but unpinned running apps would not get their own icon.
  • Apps stay reachable through the Workspace switcher / Running Apps widget, which already lists open windows.

This is probably a small change: the dock currently merges pinned apps with running apps into one list, so the new setting would skip the running-only entries when it's disabled.

I'm happy to test a build, and I can try a pull request if you point me to the right files.

Alternatives/Existing Solutions

I checked all the dock settings and couldn't find an existing option for this. The only workaround I found is editing the QML code locally.

Environment: Fedora, niri 26.04, DMS v2.1.1

yassinely6 avatar Nov 09 '26 19:11 yassinely6

I'd like to take this one, could one of you assign me? @bbedward @purian23 I'd add a "Show running apps" toggle under Settings > Dock, on by default so nothing changes for existing setups. When it's off, the dock only shows pinned apps.

Mario-Mohar avatar Nov 15 '26 09:11 Mario-Mohar

Assigned it to you @Mario-Mohar

Conava avatar Nov 15 '26 09:11 Conava

The setting in docks general settings or running apps doesn't already solve this?

image

purian23 avatar Nov 15 '26 09:11 purian23

I checked those before asking. Current workspace still shows the running apps of that workspace, group by app and separate pinned/running only change how they're arranged. The closest is "Max running apps" in the overflow card, but 0 there means all, so at least one running app always stays in the dock and the rest go into the overflow. There's no way right now to get a dock with only pinned apps, which is what the issue asks for. Happy to drop it if you'd rather not add another toggle though.

Mario-Mohar avatar Nov 15 '26 09:11 Mario-Mohar

Okay yeah we're good, go ahead and work it in. Grouping the apps solves that on my end as I don't like duplicates either, but that's a bit of an extended option so it works.

purian23 avatar Nov 15 '26 10:11 purian23