asmvik / asmvik/yabai

focus window under cursor only when display changes

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

Description

`yabai -m signal --add event=display_changed action='yabai -m window --focus mouse'`

this should technically work when cursor changes display and the command yabai -m window --focus mouse should run but doesn't work on mac. I have tried logging the event change and it does log when display changes, and even the command yabai -m window --focus mouse works separately but when combined together, it doesn't work. Any solutions or work around?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the signal command with event=display_changed and action='yabai -m window --focus mouse' on macOS, confirming that the event logs while the focus command works independently. Trace the display_changed signal handling and the window --focus mouse entry point; done means the combined command focuses the window under the cursor after the cursor changes displays, or the limitation and a workaround are documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, shell
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.