asmvik / asmvik/yabai

Request: mouse follow focus command

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

Description

I'd like to disable MFF on all windows by default, but I'd like the behavior to remain on all of my keyboard shortcuts that change which display/window is focused.

I dug though the code a bit (pretty easy to read!) and found the `window_manager_center_mouse` function. It'd be really cool if I could invoke that function via yabai: something like `yabai -m window --center-mouse`. I suppose right now what I could do is something like

```
yabai -m config mouse_follows_focus on; yabai existing command; yabai -m config mouse_follows_focus off;
```

For my keyboard shortcuts, though that is a bit cumbersome.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the existing window_manager_center_mouse function and the dispatch path for yabai window commands. Add the requested --center-mouse invocation and verify that it centers the mouse on the focused window without changing the global mouse_follows_focus setting.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
cli, operating-systems
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.