The following snippet allows me to type that text with a combo of shortcuts, without using any additional applications. bind (, "R", addReminder )Īs a Javascript developer who is not good at debugging, I spent 10% of my coding time typing console.log. appFromName ( name ): activate () end end end - quick open applications hs. launchOrFocus ( name ) if name = 'Finder' then hs. Here is my simple solution with Hammerspoon:įunction open ( name ) return function () hs. Yabai will color the window portion in red. Use super + tab to enter Insert mode, then use super + a direction or h to set the rule. But Bettertools involves a lot of unnecessary feaetures, and PowerPack is expensive. You can decide which window portion to split for a new window to appear or if you want to stack it. Before I discovered Hammerspoon, I have tried Bettertools and Alfred (with PowerPack) to do that. Opening an application by holding two keys in the keyboard, is something I’ve used for year since I used Windows. Simply pressing the corresponding window will result in that. My recipes of ~/.hammerspoon/a Open application with alt + X This works on windows that are on different monitors too. I think it should be a very simple helper tool for developers. I don’t have too many requirements from Hammerspoon. Now, assuming youve been issuing these commands from a terminal and also have a browser window open on the same space, make sure your terminal is positioned immediately to the left of your browser and issue the following command. hammerspoon, even though it seems more intuitive. / Hammerspoon / / 4843c7092be9613702a916e169bdfebda315dcd3. Launch hammerspoon (or make sure its running) (open -a 'Hammerspoon') Create a window stack. I don’t want to setup some sort of git repo for. I intend not to use it since I want to just copy and paste my configuration file text from Github. I will list some of my most useful features when I use Hammerspoon in this post.įirst of all, even though Lua has a very simple module manage system. That’s why I use Hammerspoon – a perfect solution for macOS automation. As a programmer, it’s easy to get frustrated when I have to switch from mouse and keyboard. I have been committing to free my hand from mouse for a very long time.
0 Comments
Leave a Reply. |