Skip to content

Instantly share code, notes, and snippets.

@luckman212
Created January 2, 2022 18:28
Show Gist options
  • Select an option

  • Save luckman212/e7218e5f05585d855c995fd8d89bb3d2 to your computer and use it in GitHub Desktop.

Select an option

Save luckman212/e7218e5f05585d855c995fd8d89bb3d2 to your computer and use it in GitHub Desktop.
init.lua for Hammerspoon to test window animations - see https://github.com/Hammerspoon/hammerspoon/issues/3035
x = hs.timer.doEvery(1,
function()
w = hs.console.hswindow()
if w then
w:move(
{
x=math.random(500),
y=math.random(500),
w=math.random(1000),
h=math.random(1000)
},
nil,
true,
0
)
end
end
)
hs.openConsole()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment