Skip to content

Add --when-visible (focus|swap) option to the summon-workspace command [updated]#1349

Open
awwaiid wants to merge 1 commit intonikitabobko:mainfrom
awwaiid:summon-workspace-action
Open

Add --when-visible (focus|swap) option to the summon-workspace command [updated]#1349
awwaiid wants to merge 1 commit intonikitabobko:mainfrom
awwaiid:summon-workspace-action

Conversation

@awwaiid
Copy link
Copy Markdown

@awwaiid awwaiid commented Apr 26, 2025

This is an updated version of #681, [edit] rebasing on main. I enabled the code mentioned in the other PR comment:

on-focused-monitor-changed = ['move-mouse monitor-lazy-center']
on-focus-changed = ['move-mouse window-lazy-center']

and everything is working the way it should -- the mouse cursor stays on the monitor where it started. I've been using this for a bit and all is working GREAT!! Thank you @ilyaluk!

I'd be happy to add anything else you might need to make this mergeable, let me know!

@Yucklys
Copy link
Copy Markdown

Yucklys commented May 19, 2025

Looking forward to see this feature merged. Is there any plan on this?

@nikitabobko nikitabobko force-pushed the main branch 2 times, most recently from f324d2e to 7aff813 Compare November 24, 2025 01:31
@awwaiid awwaiid force-pushed the summon-workspace-action branch 2 times, most recently from b08f93b to 06999b7 Compare January 24, 2026 17:28
…and.

What should happen when the summoned workspace is visible on another monitor?

This option introduces a choice to either:

- `focus` the monitor on which the target workspace is already visible (the current behavior)
- `swap` the workspaces between the monitors, so that the summoned workspace appears on the focused monitor.

The default is `focus`, for backwards compatibility.

Ref: nikitabobko#603
@awwaiid awwaiid force-pushed the summon-workspace-action branch from 06999b7 to 6634441 Compare January 24, 2026 18:20
@awwaiid
Copy link
Copy Markdown
Author

awwaiid commented Jan 24, 2026

I've rebased on the latest main and all seems well. I've been running with this in place for a long time now, and it works really well in my multi-monitor setup.

Workflow-wise, this summon-swap lets me do this:

  • I have 3 screens -- a monitor on the left, a monitor on the right, and my laptop below them (in a T shape)
  • On a vidcall I screenshare the right monitor
  • I prep the left monitor with what I want to show
  • Then while focused on the right monitor, I summon the workspace from the left-monitor and they swap spaces
  • I can then swap back easily, or do further prep-work on the left monitor again
  • All the while my meeting controls are down below on my laptop screen
  • Works great!

Davincible added a commit to Davincible/AeroSpace that referenced this pull request Feb 11, 2026
# Conflicts:
#	Sources/AppBundle/command/impl/SummonWorkspaceCommand.swift
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants