splusright.blogg.se

Hammerspoon hyper key
Hammerspoon hyper key













hammerspoon hyper key
  1. #Hammerspoon hyper key software#
  2. #Hammerspoon hyper key windows#
hammerspoon hyper key

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

hammerspoon hyper key

You can replace the modifier combination with a hyper key if you want

  • The following are a couple of basic examples of what you can do with Hammerspoon.
  • You can split your config into separate files (and you should, if you do any serious configuring), and then use the require function to import them
  • This is the starting point of your config.
  • Using either Homebrew or from the website Configuring Setup Basically, you’re only limited by your imagination (and your skill at writing the relevant code). It has numerous APIs for macOS functionality, and with it, you can control pretty much whatever you want to. Simply put, it is a automation tool running on Lua. Eventually, I gained an interest in configuring my system to suit me better, and I came across Hammerspoon. I won’t go into what that was like here, as there are many people on the internet who have told their stories of learning Vim. However, since I am doing a CS degree, I needed to get familiar with programming related tools, and that is how I found Vim.

    #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.

    hammerspoon hyper key

    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.















    Hammerspoon hyper key