asmvik / asmvik/yabai

Yabai + Arc spaces switching

Open
#2,269 4 comments 1 reaction 0 assignees View on GitHub
Dominant language
C
Stars
29.6k
Forks
750
PR merge metrics
No merged PRs in 30d

Description

When I switch from space with Arc browser to the first space (Desktop 1), I can see in MacOS native status-bar that focus did change to the window that is on the first space, but then immediately focus changes back to Arc while space is opened. Command that I'm using to switch between spaces is next:

`yabai -m space --focus 1 || yabai -m space --focus recent; sketchybar --trigger window_focus`

The issue persists regardless if I'm using `skhd` or execute command directly from terminal.

Here is a little screen recording of the issue:

https://github.com/koekeishiya/yabai/assets/40265576/14219452-1efb-44cf-b5b4-8df74b2f2ffd

I have to mention that this issue does persist only when switching from any space with Arc in focus to first space. The application that is launched in first space does not matter, focus does not switch to neither `kitty` nor `telegram` nor `spotify`. No errors were printed when trying to switch spaces from terminal as well as no errors in yabai log file. yabai version is `yabai-v7.1.0`.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the transition from a space with Arc focused to Desktop 1 using the reported yabai command, both from a terminal and through skhd. Compare focus behavior with Arc versus kitty, Telegram, or Spotify, and inspect the yabai log for the focus transition; done means Desktop 1 retains focus without an error.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, macos
Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.