How to create pre-defined layouts with apps specific positions #756
Unanswered
SamEdwardes
asked this question in
questions-and-answers
Replies: 1 comment 2 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
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