I wrote a script which swaps the two foreground workspaces between monitors #719
XavierChanth
started this conversation in
general
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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