Is a way to have a keyboard shortcut toggle between two particular workspaces? #938
-
I'd like to have a keyboard shortcut that:
Is there a way to set this up? I'd happy with a complex solution that involves calling into other scripts or whatnot. Any guidance deeply appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The closest I can come up with is: alt-tab = 'exec-and-forget echo -e "2\n3" | aerospace workspace --wrap-around next' If we implement #278 then it could be even simplified to (no external process is used): alt-tab = 'echo 2 3 | workspace --wrap-around next' but my solution doesn't satisfy this: "goes to the most recently visited one of workspace 2 and 3". It's not currently possible. AeroSpace doesn't keep the history of focused workspaces, but it makes sense to implement it at least for the sake of improving |
Beta Was this translation helpful? Give feedback.
The closest I can come up with is:
If we implement #278 then it could be even simplified to (no external process is used):
but my solution doesn't satisfy this: "goes to the most recently visited one of workspace 2 and 3". It's not currently possible.
AeroSpace doesn't keep the history of focused workspaces, but it makes sense to implement it at least for the sake of improving
focus-back-and-forth
command. Once it's implemented and AeroSpace provides a command to query workspaces history, what you want will become possible.