Y
Hacker News
new
|
ask
|
show
|
jobs
by
bashinator
742 days ago
I've been searching for a sloppy-mouse-focus implementation for OSX for _years_. Pretty sure there's something fundamentally incompatible in how app windows are managed.
2 comments
speedgoose
742 days ago
Looks like Hammerspoon and some lua should do:
https://www.hammerspoon.org/docs/hs.mouse.html
https://www.hammerspoon.org/docs/hs.window.html
link
bashinator
741 days ago
Not seeing a way to get the window currently under the mouse pointer, but this is pretty interesting - thanks!
link
speedgoose
741 days ago
You can get the positions of every windows, the position of the mouse pointer, and you can focus windows.
link
bashinator
741 days ago
This is really cool, I'm gonna try and implement it!
link
lelandfe
742 days ago
It's also a bummer because Terminal.app has the functionality out of the box:
https://macos-defaults.com/mouse/focusfollowsmouse.html
link
bashinator
741 days ago
It can be implemented within apps, but not across apps afaict.
link
https://www.hammerspoon.org/docs/hs.mouse.html
https://www.hammerspoon.org/docs/hs.window.html