How/when are workspaces made? #875
-
I've got shortcut keys set up for workspaces 1 to 9, like so:
Does this make workspaces? Or are they rather created when you switch to them? I'm struggling with the mental model. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Yes, the mental model is not described in the docs unfortunately. It's somewhere in my todo to write it down at some point. The general idea is that you don't need to create workspaces explicitly, which should reduce the hussle. You just say The workspaces are automatically destroyed when they are not visible, empty, and they are not mentioned in the config. The last part "are not mentioned in the config" is a bit wonky and wasn't well thought of. If I was doing it over again, I'd reconsider. If I remember it correctly I was also thinking to introduce the following config option at some point: # The current "wonky" default
force-keep-workspaces-alive = 'auto-infer-from-config'
# or
force-keep-workspaces-alive = ['1', '2', '3', '4'] The only significant difference known to me between alive and dead workspaces is that alive workspaces preserve their attachment to monitors, while dead don't. In comparison, in i3, workspaces are alive only when they are either non-empty, or visible. And I didn't like that I couldn't reliably move an empty workspace to another monitor and be sure that it would stay there |
Beta Was this translation helpful? Give feedback.
Yes, the mental model is not described in the docs unfortunately. It's somewhere in my todo to write it down at some point.
The general idea is that you don't need to create workspaces explicitly, which should reduce the hussle. You just say
workspace XXX
and AeroSpace will auto-createXXX
and jump to it.The workspaces are automatically destroyed when they are not visible, empty, and they are not mentioned in the config.
The last part "are not mentioned in the config" is a bit wonky and wasn't well thought of. If I was doing it over again, I'd reconsider. If I remember it correctly
alt-1 = 'exec-and-forget aerospace workspace 1'
- this doesn't count as "mentioned in the config", but this…