-
-
Notifications
You must be signed in to change notification settings - Fork 168
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
Feature request "focus follow mouse" / "mouse follow focus" #12
Comments
Okay, since I don't use this feature, and I don't understand why people use it. What are the workflows of people who use it? There are several controversial questions:
|
+1 for this feature, it will be hard for me to leave yabai without this |
example workflows
|
I'll describe my use-case as well:
I'll rarely use the menu bar - I either use shortcuts or if make my window fullsize if I need it
I use focus follows mouse + mouse follows focus in i3/sway/yabai, so the cursor moves to the center of the focused window if I use the keyboard to change focus.
I don't know the solution to this one, but I would personally be fine with this working any way (or not) with floating windows as I don't mind clicking these. |
This could be a good reference for implementing it: https://github.com/sbmpost/AutoRaise |
I use this feature a lot in i3. My most use case for copy pasting. I select a text with a mouse on workspace A, move my mouse to workspace B and paste there. I don't need to click on a mouse to focus the window buy just hit the copy and paste shortcut. |
This is how I use it, hope it helps. As a web developer, I use the mouse most of the time for testing applications, and since it is always on reach, I got used to the mouse for switching window when:
Here are your answers from my perspective.
|
+1 for this. The key use case for me is to be able to switch to windows on multiple monitors for copy paste from browser to editor. |
+1 for adding this in. In the meantime for anyone wanting this functionality, I found that https://github.com/sbmpost/AutoRaise gets the job done. |
Pretty please. This seems like a no-brainer to have. You either don't use mouse at all and if you do, having this feature is quite a blessing. |
My use case is simply having the mouse follow me to the active screen; can't do everything with keyboard and this saves time compared to dragging it all the way to the next screen. Luckily AutoRaise also covers this with its warping! |
This comment was marked as spam.
This comment was marked as spam.
To add context on why this is useful:
If I need to click a button on my web browser I now have to drag my house across potentially 2 full monitors. It's not the end of the world but it's annoying. Would anybody mind sharing their AutoRaise config btw? |
This my config (stored at
I wish that it wouldn't focus my background "stacked" windows which sometimes I get surprised by when I mouse over them. I'd still much rather have this in AeroSpace itself to "focus" windows in the workspace when I switch. But for now this hack works fine. I can't get it to auto-launch with AeroSpace in my config properly, so I just run this in a terminal. Good enough, but if somebody knows how to make it launch in the background that would be pretty cool too! |
I second everything that was said above, and I'd add that since creating a new window doesn't automatically focus it (I often do cmd + shift + enter to open a new terminal and then immediately start typing because i have a command in mind), after a window is created I have to look for where it is, THEN click - so 2 "tasks". I want to have to only look for where it is, fling my mouse over there and start going. It's ridiculous how often I send a mistaken slack message whose content is |
If you want to have "mouse follow focus" feature from autoraise remember to enable altTaskSwitcher=true and the warpX and warpY at 0.5 or it won't work. |
UpdateSince 0.13.1-Beta, AeroSpace introduces:
The combination of these two allows to have very configurable "mouse follows focus" workflow (but not vice-versa yet): on-focused-monitor-changed = ['move-mouse monitor-lazy-center'] # mouse lazily follows focused monitor (default in i3)
# or
on-focus-changed = ['move-mouse window-lazy-center'] # Mouse lazily follows any focus (window or workspace) Consider sponsoring the project to see more cool stuff! https://github.com/sponsors/nikitabobko |
@nikitabobko Following your call to action I went ahead and sponsored, hoping maybe it'll help you be able to work on this.
This happens to me in yabai; I usually just cmd+tab back to the window that previously had focus once I reach the menubar. Not ideal, but it's an acceptable tradeoff. Probably worth noting that I personally do not use "mouse follows focus" as I sometimes switch to a window just to use a keyboard shortcut and don't want the mouse jumping around on me. |
Adding to this discussion, I also used yabai and now Amethyst, and find focus follows mouse invaluable. I have resigned using the menubar with mouse and instead Cmd Shift /. It is the tradeoff I have accepted. I also do not use mouse follows focus. yabai was quite finicky when I used it, and I appreciate Amethyst for playing nicer as an app, which happily seems to be what this project is aiming to be. |
In yabai you can assign a key which temporarily disables "focus_follows_mouse" when held. From yabai docs:
|
This comment was marked as spam.
This comment was marked as spam.
Is it possible to ignore certain apps/windows for the
But I don't see a way to do this in Aerospace |
The text was updated successfully, but these errors were encountered: