How to create pre-defined layouts with apps specific positions #756
Unanswered
SamEdwardes
asked this question in
questions-and-answers
Replies: 2 comments 3 replies
-
Here is my work in progress, but I it not very reliable: #!/bin/zsh
set -e
# Flatten the entire tree
aerospace flatten-workspace-tree
# Get current windows
windows=$(aerospace list-windows --all --json)
echo $windows
# Zoom
zoom_window_id=$(echo -e "$windows" | jq '.[] | select(.["app-name"] == "zoom.us") | .["window-id"]')
echo "Zoom window id: $zoom_window_id"
aerospace focus --window-id "$zoom_window_id"
aerospace move left
aerospace move left
# Obsidian
obsidian_window_id=$(echo -e "$windows" | jq '.[] | select(.["app-name"] == "Obsidian") | .["window-id"]')
echo "Obsidian window id: $obsidian_window_id"
aerospace focus --window-id "$obsidian_window_id"
aerospace move left
aerospace join-with left
# Arc
arc_window_id=$(echo -e "$windows" | jq '.[] | select(.["app-name"] == "Arc") | .["window-id"]')
echo "Arc window id: $arc_window_id"
aerospace focus --window-id "$arc_window_id"
aerospace focus --window-id "$arc_window_id"
aerospace move right
# Clean up
aerospace mode main |
Beta Was this translation helpful? Give feedback.
2 replies
-
So this might not be what you are looking for but may help someone out there. For a single app (wezterm) I've make this workaround. I run a script with the same shortcut I move to a workspace, so:
the script does a few things:
It's a bit sloppy but oh well. What I'm trying to deal with is better consistency, sometimes the neofetch ends up in bottom right, or something similar, they mix up every now and then. VPS.Workspace.mp4 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Thank you for all of the awesome work on AeroSpace. I really enjoy using it everyday.
I am trying to figure out if there is a way to create "pre-defined layouts". For example, I would like a "Zoom" layout that automatically tiles the following apps in a specific layout:
I would like to trigger this layout using a keyboard shortcut (e.g.
alt
+shift
+z
)Beta Was this translation helpful? Give feedback.
All reactions