Set Default Workspace to start with after starting Hyprland

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…

2 Likes

(post deleted by author)

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)