Hyprland version
Hyprland 0.55.0 built from branch v0.55.0
Describe your issue / feature…
Hi,
I’m using a two-monitor setup (main + external monitor) on Hyprland 0.55.
By default, Hyprland always starts on Workspace 1. I’d like it to start on Workspace 6 instead.
Earlier, I used this workaround:
exec-once = hyprctl dispatch workspace 6
but I’m not sure if this is still the recommended approach in newer versions.
What is the correct/preferred way to set the startup workspace in Hyprland 0.55?
Thanks in advance.
The answer is in the wiki, along with an example…
Tried but didnt work.
I also tried setting this in the config
'hl.dispatch(hl.dsp.focus({ workspace = "6" }))' as
hl.on("hyprland.start", function ()
'hl.dispatch(hl.dsp.focus({ workspace = "6" }))
end)
I do get the control in workspace = 6 (i.e. on External Monitor) but my mouse cursor is on Workspace = 1 (i.e. Main Monitor)
Ah, I see. You want the equivalent of v0.54.x behavior:
cursor {
default_monitor = DP-1
}
See:
| name |
description |
type |
default |
| default_monitor |
the name of a default monitor for the cursor to be set to on startup (see hyprctl monitors for names) |
str |
[[EMPTY]] |
It worked.
Thank you very much!