Skip to content

Instantly share code, notes, and snippets.

View autoclave73's full-sized avatar
:shipit:
ah yes

autoclave73

:shipit:
ah yes
View GitHub Profile
@dainank
dainank / init.lua
Last active December 11, 2025 23:50
Hammerspoon Click-Through Support
-- Helper: Find window under mouse
local function windowUnderMouse()
local mousePos = hs.mouse.absolutePosition()
for _, win in ipairs(hs.window.orderedWindows()) do
if win:isVisible() then
local frame = win:frame()
if mousePos.x >= frame.x and mousePos.x <= frame.x + frame.w and
mousePos.y >= frame.y and mousePos.y <= frame.y + frame.h then
return win
end