Display panel can't toggle monitors on Hyprland 0.56: `hyprctl keyword` silently no-ops (Lua config)
Describe the bug
The Display panel (omarchy.monitor) cannot toggle displays on Hyprland 0.56 (quattro). Clicking a monitor row to disable or re-enable it does nothing.
Panel.qml line 303 runs:
actionProc.command = ["hyprctl", "keyword", "monitor", name + (enabled ? ",disable" : ",preferred,auto,auto")]
Since Hyprland 0.55 the compositor is configured with Lua and the legacy keyword parser is gone; the command fails with:
keyword can't work with non-legacy parsers. Use eval.
The panel's Process reads stdout only, so the stderr error is silent and the toggle just no-ops.
Expected behavior
Clicking a display row toggles that display off/on, and the panel row updates to reflect the new state.
Actual behavior
Nothing changes; the monitor stays in its previous state.
Steps to reproduce
- Open the Display panel (
omarchy.monitor). - Click a monitor row (e.g.
HDMI-A-1) to disable it. - Nothing happens.
- Reproduce directly:
hyprctl keyword monitor HDMI-A-1,disableprintskeyword can't work with non-legacy parsers. Use eval.
Suggested fix
Use hyprctl eval with the Lua monitor API (verified working on Hyprland 0.56.2):
actionProc.command = ["hyprctl", "eval", "hl.monitor({ output = \"" + name + "\", disabled = " + enabled + " })"]
JS booleans stringify to lowercase true/false, which is valid Lua; re-enabling with disabled = false brings the monitor back at its preferred mode/position, matching the intent of ,preferred,auto,auto.
Affected file: /usr/share/omarchy/shell/plugins/panels/monitor/Panel.qml line 303.
Environment
- Omarchy: 4.0.0-1 (stable)
- Kernel: 7.1.8-zen1-3-zen
- Hyprland: 0.56.2 (branch v0.56.2, commit efb50993780079460b0cbed1363e2166a2de1d9f)
- CPU: AMD Ryzen 7 9800X3D
- GPU: GeForce RTX 4080 SUPER
- Monitor: LG 38GN950 (DP-1, 3840x1600@144) + LG TV (HDMI-A-1, 3840x2160@60)
Confirmed on omarchy-dev 4.0.0.r1744.gf002044-1 with Hyprland 0.56. This machine has one monitor, DP-14 (3840×2160 at 1.6 scale).
Running the same legacy command used by the panel:
hyprctl keyword monitor DP-14,disable
keyword can’t work with non-legacy parsers. Use eval.
The command left DP-14 enabled with its geometry unchanged. Because it is the machine’s sole monitor, I did not execute the proposed hyprctl eval disable command as part of this confirmation.
Tested by OpenAI Codex via Codex.
A fix for this is up as PR #7036, which switches toggleDisplay to hyprctl eval with hl.monitor. It builds the Lua spec in Model.js so it is covered by test/shell.d/monitor-test.sh, and for re-enabling it sends mode = "preferred", position = "auto", scale = "auto" rather than disabled = false, so a re-enabled display comes back at preferred mode and auto position the way the old ,preferred,auto,auto string meant it to. The field names match HL.MonitorSpec in /usr/share/hypr/stubs/hl.meta.lua.
Worth noting the trigger is the config parser rather than the Hyprland version: Omarchy 4 ships Lua configs, so hyprctl keyword is rejected for every Omarchy 4 install regardless of which Hyprland minor is present. The repo already documents this in bin/omarchy-upgrade-to-quattro, which asks both ways for exactly that reason.
Confirmed on Omarchy 4.0.1-1 (stable) with Hyprland 0.56.2, laptop eDP-1 (Samsung 2880×1800) + HDMI-A-1 (LG TV SSCR2).
Clicking HDMI-A-1 in the Display panel does nothing. The panel still runs:
hyprctl keyword monitor HDMI-A-1,preferred,auto,auto
which prints keyword can't work with non-legacy parsers. Use eval. and leaves the TV disabled.
Re-enable only worked with an explicit disabled = false. This returned ok but did not enable the output:
hyprctl eval 'hl.monitor({ output = "HDMI-A-1", mode = "preferred", position = "auto", scale = "auto" })'
This did:
hyprctl eval 'hl.monitor({ output = "HDMI-A-1", disabled = false, mode = "preferred", position = "auto", scale = 1 })'
Matches the enable spec in PR #7036.
Thanks — your report is right, and it corrects something in my earlier comment that I should not have left standing.
I said #7036 sends mode, position and scale "rather than disabled = false". That described the branch at an earlier commit; it had already moved by the time I wrote it. The current head (e11a597, via the commit "Say disabled = false so enabling a display takes effect") sends exactly the spec you found working, so your conclusion that it matches the PR is correct and my description of it was stale.
I re-checked this against #7036's current head on a disposable Omarchy 4.0.1-1 / Hyprland 0.56.2 VM — your versions — toggling a real DRM connector with a second output present, so the panel's "don't disable the last display" guard was not in the way:
hyprctl keyword monitor <name>,disableprintskeyword can't work with non-legacy parsers. Use eval.and exits 0. That zero is why the panel looked like it worked: nothing on the shipped 4.0.1-1 code path could tell the change had been refused.hl.monitor({ output = "<name>", disabled = true })disables.- Your failing form, without
disabled = false, returnsokand leaves the output disabled. Reproduced exactly. - #7036's current enable spec —
disabled = false, mode = "preferred", position = "auto", scale = "auto"— returnsokand re-enables the output.
One correction worth having, since it affects what the fix needs to say. Your two commands differ in two things: the added disabled = false and scale going from "auto" to 1. Isolating them, the scale is not a factor — once disabled = false is present, both scale = "auto" and scale = 1 re-enable the output, and with it absent neither does. disabled = false is the whole difference. That matters because scale = "auto" is what the old ,preferred,auto,auto string meant, so the PR keeping it is deliberate rather than an oversight.
So #7036 as it currently stands does fix this for an eDP-1 + HDMI-A-1 setup. It replaces the keyword call with eval rather than just reporting the refusal — the refusal logging it also adds is a separate safety net, not the fix.
Two caveats you may hit before it lands. Re-enabling forces preferred mode, position = "auto" and scale = "auto", so if you have pinned a mode, position or scale for the TV in ~/.config/hypr/monitors.lua, re-enabling from the panel overrides it at runtime until the next hyprctl reload. And a click that arrives while a previous panel action is still running is dropped rather than queued (Panel.qml:303), which is pre-existing and untouched by the PR. As a workaround today, the hyprctl eval command you already found works.
I checked #8362, which changes multi-monitor positioning defaults, in case it collided: it touches different files and only changes commented-out examples and docs, so it does not conflict. The one overlap is that it recommends position = "auto-right" for explicit external-monitor rules while #7036 always injects position = "auto" on re-enable — relevant only if you write such a rule, not to the shipped default.
This was reviewed a second time by Codex at xhigh reasoning. It agreed on the mechanism and on the argument polarity of the toggle, and it flagged that repository source alone cannot prove what Hyprland actually does with disabled = false — which is what the VM run above settles. Its independence is not currently guaranteed, so read the agreement as corroboration rather than a separate confirmation; the runtime results are the part that stands on its own.
Nothing further is needed from you. #7036 is open and waiting on a maintainer decision — it is not mine to merge, and I can't say when it will land.
Also hitting this on Omarchy 4.0.4-1 / Hyprland 0.56.2 (ASUS G14 GA402NJ). Worth noting the impact beyond convenience: on this laptop unplugging HDMI fires no monitorremoved event, so the Display panel toggle is the only stock way to drop the external output — with it dead, there is no UI path at all. Confirmed Panel.qml:303 is the single remaining hyprctl keyword call site in the tree; the scale control right next to it (Panel.qml:308 → omarchy-hyprland-monitor-scaling) already uses hyprctl eval.
The reported failure is fixed on quattro by #13725. The Display panel now uses hl.monitor through hyprctl eval with explicit disabled=false on re-enable, fixing the keyword-command no-op on Lua-configured Hyprland.
Scope checked by GPT-6 in Codex and Codex Medium against the discussion and landed change; review independence is not guaranteed. No tests were rerun for this cleanup.
Omabot on behalf of DHH