There's a lot more, but anything that allows me to do those things should allow me to do anything else I want. I'd like to draw a dotted-line rectangle with curved corners and a shadow around specified grid segments as a preview of where a window would be moved if the user completed a certain command. A native Cocoa dialog would be better, but something graphically drawn on screen with Lua would be fine, as long as the details of the image are abstracted away for me, and I can just define the text and fields and buttons in the dialog. Basically, you’re only limited by your imagination (and your skill at writing the relevant code). It has numerous APIs for macOS functionality, and with it, you can control pretty much whatever you want to. I'd like to display a dialog box in which the user can enter two values, to specify how many rows and how many columns they want in their screen grid. Hammerspoon is a really powerful but simple automation tool for OSX. Hammerspoon About Simply put, it is a automation tool running on Lua. To give two concrete examples of things I'd like to do: I initially thought one of the Lua libraries designed for building games would have more than I could possibly need, and looked into love2d, but it did not appear to be possible to use with Hammerspoon in any straightforward manner. I can do that already with no difficulty.) (Simple drawing on-screen is not a problem, so examples of geometric shapes are not helpful. If you imagine a screen being split into 4 quadrants, there are various key bindings (in association with the caps lock/hyper remapping) to send windows to occupy various quadrants. ![]() ![]() ![]() There is a section devoted to window layout, sending windows to various grid locations. I'm new to Lua and Hammerspoon, and so far I've been unable to figure out how to get this working. Hammerspoon is not only limited to launching commands triggered by keystrokes. Probably the easiest way to start is to take a look at the code at especially the extensions folder (to be honest, except for very specific things, I. I'd like to use a more sophisticated graphics or GUI widget library in my Hammerspoon config file, in order to get user input and do more advanced drawing on the screen than Hammerspoon allows (as far as I can tell) by default.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |