4.5 per-monitor workspaces: launch-or-focus binds don't switch to an app open on another monitor
System details
- Omarchy 4.5.0-3, Hyprland 0.56.2, SDDM
- Laptop: LENOVO ThinkPad P14s Gen 7 AMD (eDP-1), plus two external monitors (DP-6, DP-11)
- Per-monitor workspaces enabled (stock): eDP-1 owns 1-10, DP-6 owns 11-20 or 21-30, and so on
What's wrong?
Pressing a launch-or-focus keybinding for an app that is already open on a different monitor does nothing visible. The focus lands on the window, but the window stays on its own monitor and workspace, and focus does not move there. The app does not get brought to the user.
Example: SUPER + SHIFT + O (o.bind("SUPER + SHIFT + O", "Obsidian", { launch = "obsidian", focus = "^obsidian$" }))
runs omarchy-launch-or-focus, which does
hyprctl dispatch "hl.dsp.focus({ window = \"address:...\" })".
On 4.5, hl.dsp.focus({ window = ... }) only acts within the currently focused
monitor. It does not switch the monitor, and it does not switch to the window's
workspace, so the window stays on the other monitor.
This is a regression from Omarchy 4.0, where shared workspaces made the single focus call sufficient.
Steps to reproduce
- Open an app (e.g. Obsidian) and move it to workspace 3 on eDP-1.
- Focus a different monitor (e.g. DP-11) and stay on its workspace.
- Press
SUPER + SHIFT + O. - Expected: focus moves to eDP-1, workspace 3, and the Obsidian window.
- Actual: nothing changes. The focused monitor stays on DP-11 and the window stays hidden on eDP-1 workspace 3.
Verified workaround
Dispatching in this order works on 4.5:
hl.dsp.focus({ monitor = "eDP-1" })
hl.dsp.focus({ workspace = "3" })
hl.dsp.focus({ window = "address:0x..." })
Implemented as a helper script that looks up the window's monitor and workspace
in hyprctl clients -j and hyprctl monitors -j and dispatches those three
steps. Tested with the same steps from DP-11 to eDP-1 workspace 3.
omarchy-launch-or-focus, omarchy-hyprland-focus-app, and the webapp and TUI
focus helpers use the same single dispatch, so they likely have the same problem.
Related issues
- #7464 and #8902:
focus = "^obsidian$"is anchored, so it does not match the classmd.obsidian.Obsidian. Those issues are about the class match. This issue is separate: even with the class matched, the focus does not move to another monitor.
Suggested fix
Have the focus helpers dispatch monitor, then workspace, then window
(the same order o.workspaces.focus in monitor-workspaces.lua already uses),
instead of a bare window focus.
Diagnostics
omarchy-debug --no-sudo --print output is in /tmp/omarchy-debug.log on the
reporter's machine (not uploaded).
I read the report and checked the current omarchy-launch-or-focus and omarchy-hyprland-focus-app dispatches. I have not reproduced the monitor-switching failure or tested a fix.
This was reviewed by GPT-6 in Codex (effort not exposed). The configured classification model, deepseek-v4p1-flash (effort not exposed), returned no valid class, so classification remains unsettled. This is waiting on maintainer review; no verification labels were added.
I could not reproduce this on quattro at 3aab775bb320d52b4d62c5e0a8d11efe53909bec with Hyprland 0.57.2 in a disposable ISO worker using one QEMU output and one headless output, with two normal foot windows. Starting with a control window focused on workspace 11, both omarchy-launch-or-focus and omarchy-hyprland-focus-app switched to the other monitor, opened its hidden workspace 3, and focused the target window. The launcher also worked with the target workspace already visible and when started through hl.dsp.exec_cmd, as a keybinding starts it. A direct Lua window-focus dispatch worked too.
Hyprland 0.56.2's Lua window-focus dispatcher calls Actions::focus, which selects the target workspace and focuses its owning monitor. That does not establish what failed in your session: I did not execute 0.56.2 or reproduce your physical monitor setup. No fix was made, and no verification labels were added.
@b2amedina, does this still happen on current Omarchy? If so, please post:
- The current Omarchy and Hyprland versions, and the exact binding/focus pattern that fails.
- The target window's entry from
hyprctl clients -j, taken immediately before pressing the key. hyprctl monitors -jandhyprctl activewindow -j, taken immediately before and after pressing it.
Also try the bare hyprctl dispatch 'hl.dsp.focus({ window = "address:0x..." })' command, replacing 0x... with that client's actual address, while focused on the other monitor, and include its output. This bypasses matching: the workaround may find the window differently from the original binding.
GPT-6 in Codex (effort not exposed), Opus 5.5 High and muse-wonder via pi, thinking high reviewed the code and these results. Both reviewers found no verified defect; review independence is not guaranteed. This is waiting on your runtime data.