![]() ![]() ![]() It didn’t take much time, and is very enjoyable to use, and because the module was added to the core Hammerspoon distribution, lots of other people can also benefit from it. The module was written mostly in a single evening as a native Lua module (originally for Mjolnir, the precursor to Hammerspoon). They allow you to switch to any window with only two keystrokes: One shortcut to bring up icons and letters for every window, and then simply hitting the key corresponding to the window you want. The first Hammerspoon module I wrote was a port of Slate’s window hints, which if you’ve ever used Vimium or Vimperator, are like link hints for windows. This post explores some of the ways I’ve used Hammerspoon to greatly enhance my general OSX-using experience. I think of it more as a general-purpose tool for modifying OSX’s user interface than just a window manager. It’s fully configurable with Lua, has tons of built in modules and it is simple to write your own modules. Hammerspoon gives me most of the power that a fancy Linux tiling window manager and configurable desktop would give me, without having to switch operating systems. function makeBrowserOfBreakTime () local screen = require" hs.Advanced Hackery With The Hammerspoon Window ManagerĪlong with Dash, Sketch and Papers, one of the main reasons I haven’t yet switched to Linux is Hammerspoon. Using a transparent image to make the page translucent is also not bad. Then, we can create a page covering the whole screen with hs.webview. Obj.Timer:start() Code language: PHP ( php ) To implement this, we need to periodically use a page or image to cover the whole screen to make the guys in front of the PC take a rest.įirstly, we can quickly start a timer with hs.timer: obj.Timer = hs.timer. We can also create spoons with the API, such as BreakTime. It is pretty easy, right? Only several hotkey bindings to functionality are enough. Hs.hotkey.bind(, "/", "Window Undo", function () spoon.WinWin:undo () end) end Code language: PHP ( php ) Supporting symbol characters in the message of Hammerspoon is quite helpful. Check whether WinWin is loaded and bind hotkeys to different directions. We can quickly implement this with the WinWin spoon ![]() We can customize with the official spoons, such as windows manipulation. Under the situation of no experience in Lua, I quickly finished the customizing based on the official documentation. The users only need a little knowledge of Lua before customizing with Hammerspoon. I can say this is really a Swiss Army Knife on macOS.Īctually, there are some similar tools, but Hammerspoon finds the best balance between usage simplicity and functionality complexity. So I tried to find a way to minimize the number of tools I relied on, and I found Hammerspoon. This didn’t bother me much until I changed my Macbook Pro thrice in half a year. I have to look for an alternative because sometimes one is no longer free of charge, or sometimes one no longer supports the latest OS. One non-exhaustive list of my favorite toolsīesides improving my experience in using a computer, these tools also cause a few inconveniences, especially when I need to reinstall the OS and set up a new laptop. Open a terminal with the current folder path. It can show you the list of the selected application’s hotkeys. The official site of the Oxford dictionary. Timely covers your screen to make you have a rest. It can periodically and automatically set a beautiful sightseeing image as your wallpaper. If the screen is big enough, you may put the documentation on the left and IDE on the right. Here is a non-exhaustive list: AppĬan easily attach the windows to the sides or corners of the screen. Such as my laptop, there are a bunch of tools that improve my experience using a computer. I may believe that most computers contain unique customizations, which may be why most people hate reinstalling the operating systems or setting up a new computer. We can also customize the taskbar menu to improve the user experience.We can also create spoons with the API, such as BreakTime.We can customize with the official spoons, such as windows manipulation. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |