stupidsetr.blogg.se

Hammerspoon window switcher
Hammerspoon window switcher







When enabled and the enter key is pressed it presses = then command C.ĪpplicationCalculatorEnterHotkey = hs.hotkey.bind(, "=") is used to act as if the enter key had been pressed again and is unique to Calculator. Copy/paste your ‘Hello from Hammerspoon’ script into this file. It will then be enabled/disabled as Calculator is focused/unfocused myworkplace is pretty lean (on cables) and mean (on screen real estate).

hammerspoon window switcher

I’m a sucker for screen real estate, and thus I use 2 32' 4k monitors so I can see most of my apps' windows simultaneously, instead of switching back and forth between them.

HAMMERSPOON WINDOW SWITCHER INSTALL

The user only has to click an Install window switcher button, no big deal. A nifty window layout switcher for macOS using Hammerspoon. Assuming your are using this in conjunction of one of the answers I gave you back in mid November regarding Calculator, then the modified Lua code below works for me to switch to the previous application when pressing the enter key while in Calculator.Įxample Lua code: - Create a hotkey used to trap the enter key and disable it. So I wrote a function to download Hammerspoon.zip, unzip it in a temporary folder, move it to /Applications, write a and a inside the /.hammerspoon directory, launch Hammerspoon and wait for the websocket to be available.







Hammerspoon window switcher