

If you want to use this app switcher, I strongly suggest setting up a hyper key using the instructions in Part 1. You can use any modifier, not just the hyper key, but simpler combinations such as command+control are more likely to conflict with existing keyboard shortcuts. (To learn about the hyper key, please check out Part 1.) So, for example, hyper+C switches to Chrome, hyper+I switches to iTerm, and hyper+V switches to VS Code. In my case, I've used the hyper key as my modifier.
#Hammerspoon spoon example windows#
If I press it more than once, I'll switch between windows within that app. All of my most-used apps are assigned a letter, and by pressing a keyboard shortcut with that letter, I can switch to the app. I wanted something that could take me directy to the app I'm looking for with one keyboard shortcut, so I made it. If I'm pressing command+tab, I might have to press it several times in order to get to the app I'm looking for. These are all fine, but they all have one thing in common: You have to look for the app you want by its icon, then once you find it, you can switch to it. People who prefer keyboard shortcuts are probably already familiar with using command+tab to switch between apps. Others will use Mission Control or Expose to find the app they are looking for. Many people just click on the app in the dock to switch between apps. My Ultimate App Switcherįor the past few years, I've been using Hammerspoon to help me switch apps in the quickest way possible. It's geared toward developers who understand scripting languages, and the scripst are written in Lua. It's useful for things like window management, automation, keyboard mapping, and more.

Write scripts that interface and integrate with the OS. Hammerspoon is a utility for macOS that lets you My amazing app switcher made using Hammerspoon.
#Hammerspoon spoon example how to#
In this installment of How to Break Up With Your Mouse, I'll show you: If you haven't read How to Break Up With Your Mouse, Part 1, I suggest you do so. If you're using macOS, I've got some tips to share to help you get away from your mouse and speed up your workflow on your keyboard, quickly and easily. It helps me to be faster and more efficient, and keep my mind flowing while I'm working. I love being able to keep my hands on the keyboard, and the home row, as much as possible. I hate using my mouse when I'm writing code! It slows me down, and throws me off of my groove.
