function makeBrowserOfBreakTime () local screen = require" hs. 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.You may combine the previous comments in a and the image below to understand this. After finishing the MIT-Missing-Semester, I came across the hammerspoon tool. We should keep our hands on the keyboard as much as possible. As a result, I always using my mouse to move and resize my window, which is less efficient. Its job is get the focused window and make some changes of position and size. I found that the windows management built in macOS is difficult to use. My solution consists of 3 *.lua file(I have put this in my dotfiles) Move current window to the center of screen.Move and resize my window to the top-left/top-right/bottom-left/bottom-right of screen. Move and resize my window to the left/right of screen.I would like to have the following features: I follow Learn Lua in Y minutes to have a basic understanding of this language. To be honest, I once heard the Lua language but I don’t know anything about it. The windows management is kind of automation. I really like this one :) What is hammerspoon ?Īccording to the official site’s introduction, hammerspoon is a tool for powerful automation of OS X, which is just a bridge between the operating system and a Lua scripting engine. I found that the windows management built in macOS is difficult to use.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |