Created
January 2, 2022 18:28
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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