nikitabobko / AeroSpace

AeroSpace is an i3-like tiling window manager for macOS
https://nikitabobko.github.io/AeroSpace/guide
MIT License
3.52k stars 52 forks source link

[feature request] Define sub-layouts for layouts in configuration file #187

Open ctruett opened 3 months ago

ctruett commented 3 months ago

It would be helpful to be able to define layouts in the configuration that would be restore on launch or that could be triggered by a hotkey.

The layout definitions could look like this:

[layout]
name = 'main_workspace'
mode = 'tiling'
monitor = 1

[main_workspace.calendar] # layout_name.sub-layout_name
type = 'v_accordion' # sub-layout type
apps = ['com.microsoft.Outlook2', 'com.apple.mail'] # List of app-ids
position = [8, 33] # percentages?
size = [582, 1758] # percentages?

[main_workspace.browser]
type = 'static'
apps = ['com.apple.Safari']
position = [602, 33]
size = [1492, 1758]

[main_workspace.terminal]
type = 'tiles'
apps = ['com.googlecode.iTerm2']
position = [2106, 33]
size = [1086, 873]

[main_workspace.teams]
type = 'tiles'
apps = ['com.microsoft.teams2']
position = [2106, 918]
size = [1086, 873]
ctruett commented 3 months ago

Updated with a better configuration suggestion.