


currentNetwork () if net = nil then hs.notify. watcher.new ( function () local net = hs.wifi.

You can replace the modifier combination with a hyper key if you want
#Hammerspoon hyper key software#
I do still occasionally boot into Windows, using Bootcamp, but it’s only when I need to use some software that doesn’t run on macOS.Īt first, I used macOS much like I used to use Windows. Once I moved to macOS, it took quite some time to get used to it. I have used Ubuntu a bit, but that barely counts. Before that, I had only ever known Windows. Another example of where I use it is with Hammerspoon via hyper + \ to open anycomplete to help with spelling complicated words.I’ve been using macOS for a little over a year now. I even use them to open the quick add modal for GoodTask via hyper + '. Hyper key shortcuts work well to access other applications in a global context. I have several combinations which open/hide various applications: The one thing that you need to do is ensure that the trigger’s behaviour is set to “Pass through modifier keys (Fastest)” (as illustrated in the following image), otherwise, there will be a slight delay in the action being performed. This allows the hotkey triggers to perform an action. I made a new workflow that has multiple hotkey triggers that use the hyper key in combination with a single character. I personally use Karabiner-Elements to enable a hyper key, but any of the following should do the trick.

This inspired me to look at how I could use this new modifier key. I first heard about the hyper key from an article Steve Losh wrote which touched on the subject. – BetterTouchTool’s documentation on the hyper key The Hyper KeyĪ Hyper Key is a magical key that automatically presses all the standard modifiers (ctrl+shift+cmd+opt).
#Hammerspoon hyper key windows#
This is tailored to a MacOS system…although I wouldn’t be surprised if you could find alternatives for a Linux or Windows environment. This does require a bit of setup to make it work, but the payoff is pretty nice as you’ll be saving keystrokes and/or mouse/trackpad movements. The hyper key is great because no application expects you to hold all modifier keys at the same time, which sets it up perfectly for a global hotkey. My primary usage of the hyper key is to open/hide applications with global hotkeys. I find I can work more efficiently by keeping my hands on the keyboard, which is a great thing as a developer. My keyboard sees a lot of use, and where possible I try not to reach for the mouse/trackpad.
