Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue with window swapping automatically after updating to v0.15.2 from 14.1 #724

Open
AlejandroSanchez90 opened this issue Nov 18, 2024 · 1 comment
Labels
bug Something isn't working as expected

Comments

@AlejandroSanchez90
Copy link

just updated Aerospace to the latest, and now my workspaces are acting weird, let's say I have 2 (a and b) windows in Workspace 1, and I'm at Workspace 2 if I jump to Workspace 1, window A will swap to the front while been in workspace 1, if I swap focused window to B, and jump to any other workspace and back to 1, then my windows will swap again to A, is there something new that would rearrange my windows on workspace move?

also, I'm not able to swap windows if the next window is float, so if I'm at window A and window B is float, then nothing will happen after opt + shit + h/l

here is my config

after-login-command = []
after-startup-command = [
    'exec-and-forget /opt/homebrew/bin/borders active_color=0xffe1e3e4 inactive_color=0xff494d64 width=5.0'
]

start-at-login = true
enable-normalization-flatten-containers = true
enable-normalization-opposite-orientation-for-nested-containers = true
accordion-padding = 30
default-root-container-layout = 'tiles'
default-root-container-orientation = 'auto'
key-mapping.preset = 'qwerty'
on-focused-monitor-changed = ['move-mouse monitor-lazy-center']

[gaps]
inner.horizontal = 20
inner.vertical =   20 
outer.left =       20
outer.bottom =     20
outer.top =        20
outer.right =      20

[mode.main.binding]
alt-slash = 'layout tiles horizontal vertical'
alt-comma = 'layout accordion horizontal vertical'

alt-h = 'focus left'
alt-j = 'focus down'
alt-k = 'focus up'
alt-l = 'focus right'

alt-b = ['exec-and-forget open -n -a "Google Chrome"', 'mode main']
alt-p = ['exec-and-forget open -a "Postman"', 'mode main']
alt-t = ['exec-and-forget open -n  -a "WezTerm"', 'mode main']
alt-c = ['exec-and-forget open -a "Microsoft Teams"', 'mode main']
alt-m = ['exec-and-forget open -a "Microsoft Outlook"', 'mode main']
alt-g = ['exec-and-forget open -a "GitHub Desktop"', 'mode main']

alt-minus = 'resize smart -50'
alt-equal = 'resize smart +50'
alt-0 = 'balance-sizes'

alt-x = 'close'
alt-o = 'close-all-windows-but-current'

alt-1 = 'workspace 1'
alt-2 = 'workspace 2'
alt-3 = 'workspace 3'
alt-4 = 'workspace 4'
alt-5 = 'workspace 5'
alt-6 = 'workspace 6'
alt-7 = 'workspace 7'
alt-8 = 'workspace 8'
alt-9 = 'workspace 9'
alt-shift-1 = ['move-node-to-workspace 1', 'workspace 1']
alt-shift-2 = ['move-node-to-workspace 2', 'workspace 2']
alt-shift-3 = ['move-node-to-workspace 3', 'workspace 3']
alt-shift-4 = ['move-node-to-workspace 4', 'workspace 4']
alt-shift-5 = ['move-node-to-workspace 5', 'workspace 5']
alt-shift-6 = ['move-node-to-workspace 6', 'workspace 6']
alt-shift-7 = ['move-node-to-workspace 7', 'workspace 7']
alt-shift-8 = ['move-node-to-workspace 8', 'workspace 8']
alt-shift-9 = ['move-node-to-workspace 9', 'workspace 9']

alt-shift-tab = 'move-workspace-to-monitor --wrap-around next'

alt-tab = 'workspace-back-and-forth'

alt-shift-h = 'move left'
alt-shift-j = 'move down'
alt-shift-k = 'move up'
alt-shift-l = 'move right'

alt-shift-semicolon = 'mode service'
alt-shift-m = 'mode move'
alt-shift-o = 'mode open'

[mode.open.binding]
esc = 'mode main'
enter = 'mode main'
 
[mode.move.binding]
esc = 'mode main'
enter = 'mode main'




[mode.service.binding]
esc = ['reload-config', 'mode main']
r = ['flatten-workspace-tree', 'mode main'] # reset layout
f = ['layout floating tiling', 'mode main'] # Toggle between floating and tiling layout
backspace = ['close-all-windows-but-current', 'mode main']

alt-shift-h = ['join-with left', 'mode main']
alt-shift-j = ['join-with down', 'mode main']
alt-shift-k = ['join-with up', 'mode main']
alt-shift-l = ['join-with right', 'mode main']

[workspace-to-monitor-force-assignment]
1 = ['KYY', 1,2,3]
2 = ['DELL U2415','Built-in Retina Display']
3 = [3, 'KYY',2,1]
4 = [3, 'KYY',2,1]
5 = [2, 'Built-in Retina Display',2 ,1 ]

[[on-window-detected]]
if.app-id = 'com.microsoft.teams2'
check-further-callbacks = true
run = ['move-node-to-workspace 1']  # The callback itself

[[on-window-detected]]
if.app-id = 'com.microsoft.Outlook'
check-further-callbacks = true
run = ['move-node-to-workspace 1']  # The callback itself

[[on-window-detected]]
if.app-id = 'com.github.wez.wezterm'
check-further-callbacks = true
run = ['move-node-to-workspace 2']  # The callback itself
[[on-window-detected]]
if.app-id = 'com.googlecode.iterm2'
check-further-callbacks = true
run = ['move-node-to-workspace 2']  # The callback itself

[[on-window-detected]]
if.app-id = 'com.google.Chrome'
check-further-callbacks = true
run = ['move-node-to-workspace 3']  # The callback itself

[[on-window-detected]]
if.app-id = 'com.apple.finder'
check-further-callbacks = true
run = ['layout floating']  # The callback itself

[[on-window-detected]]
if.app-id = 'com.postmanlabs.mac'
check-further-callbacks = true
run = ['move-node-to-workspace 4']  # The callback itself

[[on-window-detected]]
if.app-id = 'com.github.GitHubClient'
check-further-callbacks = true
run = ['move-node-to-workspace 4']  # The callback itself


[[on-window-detected]]
if.app-id = 'net.whatsapp.WhatsApp'
check-further-callbacks = true
run = ['layout floating','move-node-to-workspace 2' ]  # The callback itself

[[on-window-detected]]
if.app-id = 'com.apple.PhotoBooth'
check-further-callbacks = true
run = ['layout floating','move-node-to-workspace 1' ]  # The callback itself
@AlejandroSanchez90 AlejandroSanchez90 added the bug Something isn't working as expected label Nov 18, 2024
@Jeppelelle
Copy link

Did you find any solution? I think i might have a related issue:

On WS1 i have 3 floating applications: Safari, Finder & iina, Safari is the furthest in the background, then Finder ontop of Safari, then, when i open a movie from finder and iina opens, when i cmd-w iina, instead of focusing Finder which was the most recent application used, it switches to Safari and put it in the foreground even though it was last in the hierarchy, so i have to manually focus Finder again to put it infront of Safari

If i close Safari, then open a movie from Finder that opens in iina, when i cmd-w iina it does switch to Finder BUT also switches to the first (left most) tab in Finder, so then i have to manually go to the tab in Finder that i had open

Overall, there seem to be huge Focus issues in Aerospace currently

macOS Ventura 13.7.1
AeroSpace v0.15.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests

2 participants