![]() ![]() Modify the Settings below to fit your configuration - 6. You can write Lua code that interacts with. Select Open Config in Hammerspoons menu and copy the contents of this script into a - 5. What gives Hammerspoon its power is a set of extensions that expose specific pieces of system functionality, to the user. People use it for all sorts of automations, with key remappings and quick window switchers being the most common applications. At its core, Hammerspoon is just a bridge between the operating system and a Lua scripting engine. Hammerspoon is a macOS automation framework that allows you to hook into all sort of OS interfaces using Lua scripts. Ī practical usage of JavaScript's Function. This is a tool for powerful automation of OS X. For this, I created code similar to the following (it is meant to be a minimal example): function foo () f hs.window. I am trying to draw a red line in the title bar of a focused window. After giving it a try, not only did I find that statement to be true, but as someone who has ZERO prior practical experience with Lua, I was surprised by how relatively easy it was to get on board. Hammerspoon: drawing a line in the title bar of a window. I happen to like vim-style cursor movements, so binding split navigations to. Yesterday I discovered Hammerspoon, a project that touts itself as a tool for powerful automation of OS X. # Move between windows/tabs with `o` and `p`:Īlthough the default n and p are easier to remember ( “next” and “previous”), I find moving between windows faster with o and p as they are right next to each other.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |