![]() Like an actual hammer combined with an actual spoon, it does almost everything you could possibly want. I quick Google search failed to dig up any apps that do this. I thought it’d be nice, if rather than having to click on the wifi in the menu bar to check which network I was on, I could just glance at the menu bar where it could be displayed at all times. Frequently though, I’d discover that my wifi was dropping out, only to find that my laptop had connected to the sushi shop next door rather than my own work hotspot. Inter-process communication and a simple HTTPServer enable you to trigger Hammerspoon functionality from pretty much any environment.įun fact: the name Hammerspoon is derived from itself being a "fork" of its lightweight predecessor Mjölnir (that being the name of Thor's hammer □).Recently I started a job in a new office, where I like to work from the basement of the building.When Spotify begins to play a new song, display an alert with the new song title, artist, etc….Move window focus directionally using the VIM movement keys (HJKL).If you fancy giving a shot at writing your own spoons, here are a couple ideas to help get your creativity flowing: ![]() Local newFrame = hs.geometry.rect(fromPoint.x, fromPoint.y, 0, 0)Īnd that's all it takes! Stepping into the futureįeel free to check out my Hammerspoon config on GitHub, where you can find the coalesced version of the example above, along with my (upcoming) other spoons. RectanglePreview:setStrokeColor(,įromPoint = hs.mouse.getAbsolutePosition() Local rectanglePreviewColor = '#81ecec ' local rectanglePreview = hs.drawing.rectangle( Having been inspired from a post I saw on /r/unixporn, we shall be creating a quick spoon which allows the user to draw a rectangle on top of the screen only to transform into a terminal window.Ĭreate a rectangle which overlays on top of the screen, to indicate the size of the incoming terminal window: So, let's give you a taste of how it works and dive into a code example. Hopefully, by now you're convinced about how powerful Hammerspoon can be. Afterwards, launch Hammerspoon.app and enable accessability. If you don't use brew cask (you really should), you can download the latest release from GitHub then drag the application over to your /Applications/ folder. If you use brew cask, you can install Hammerspoon in seconds by running the command: brew cask install hammerspoon. The reason as to why this isn't the default behaviour is beyond me…
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |