Skip to content

Is a way to have a keyboard shortcut toggle between two particular workspaces? #938

Discussion options

You must be logged in to vote

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 focus-back-and-forth command. Once it's implemented and AeroSpace provides a command to query workspaces history, what you want will become possible.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sryza
Comment options

Answer selected by sryza
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants