DankMaterialShell icon indicating copy to clipboard operation
DankMaterialShell copied to clipboard

IPC: `widget status <id>` always returns "hidden", contradicting `widget list`

Open Mark2Mac opened this issue 3 months ago • 0 comments

Summary

dms ipc call widget status <id> always returns hidden, including for widgets that dms ipc call widget list reports as [visible]. The two endpoints describe the same state and contradict each other.

Reproduction

$ dms ipc call widget list
systemTray
clipboard
volumePill [visible]
brightnessPill [visible]
battery
tempPill [visible]
memPill [visible]
...

$ dms ipc call widget status volumePill
hidden
$ dms ipc call widget status tempPill
hidden
$ dms ipc call widget status memPill
hidden

Every widget I tried returns hidden, whether or not list marks it [visible].

Why it matters

status is the endpoint a script would use to check whether a widget is active. It does not fail — it confidently returns a false value, so anything built on it is wrong with no way to notice except by cross-checking list.

Concretely: I spent time hunting a non-existent bug in one of my own plugins because status reported it hidden while it was on screen the whole time.

Environment

  • DankMaterialShell with Quickshell 0.3.0 (Arch extra)
  • niri 26.04
  • Widgets involved are a mix of built-ins and third-party plugins; the behaviour is the same for both.

I'm happy to test a fix.

Mark2Mac avatar Aug 09 '26 23:08 Mark2Mac