Waybar: How to set a custom order for special workspaces?

I have a few special workspaces (editor, terminal, browser, …) in hyprland.

On hyprland autostart I open one window in each of these workspaces. The order these workspaces are shown in waybar is like random, depending how fast the applications start on autostart.

I would like to have a defined order for the special workspaces in waybar. How to achieve this?

Best Regards

Peter

not positive. but. If I were to attempt it, this is how I would do it.

  1. I would add sleep 0.1 or so on the exec lines to slow down their launch, this alone will help make them launch in order.
  • i.e. exec-once = sleep 0.1 [your_app_name] | sleep 0.15| sleep 0.2 …. etc…
  • this won’t assign them a special workspace, but it will ensure they launch in a set order.
  1. I would assume you can assign Special workspace numbers, like windowrule. I may be wrong. but I would try windowrule = ………….. special 1, special 2, special 3
  • whatever you have your scratchpad spaces named you will need to adjust.

anyway, this is where I would start.

It can be done with the workspaces. From the documentation:
workspace = special:scratchpad, on-created-empty:foot