I wrote a script which swaps the two foreground workspaces between monitors #719
XavierChanth
started this conversation in
general
Replies: 2 comments 1 reply
-
I love you script. It's functionality I've been looking for. I do however make extensive use of the |
Beta Was this translation helpful? Give feedback.
1 reply
-
This may be related to the open PR #1349 which adds |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Edit (March 16, 2025):
Working on a version which uses summon-workspace to be a lot less janky (no extra focuses required).
I'm having issues with getting summon-workspace to work though... it seems it sometimes silently fails... and seems to be monitor dependent.
permalink to this version:
https://github.com/XavierChanth/dotfiles/blob/988c29dbf3d6a9e4ffc602fd568b0e5ebdb15f43/dotfiles/dot-local/bin/aerospace-util.d/swap-workspace-monitors
Original post:
It is a little lengthy, so I've pasted the permalink:
https://github.com/XavierChanth/dotfiles/blob/ab35b4907db15daf55134d4d15ad7402f4f87fec/dotfiles/dot-local/bin/aerospace-util.d/swap-workspace-monitors
The usage is
path/to/script [--wrap-around] (next|prev)
up|down|right|left
won't work as it depends onaerospace move-workspace-to-monitor
which doesn't support that.It is a little bit slow, as it has to perform a few aerospace operations... what I have now is the bare minimum aerospace commands required.
I find myself browsing something on my secondary display and I just quickly want to move it to the main monitor until I find the thing I want to reference, then I swap back.
It also handles the case where a workspace is pinned to a monitor and can't be moved. It will restore the original state in that scenario.
Beta Was this translation helpful? Give feedback.
All reactions