templatezuloo.blogg.se

Hammerspoon caps lock
Hammerspoon caps lock







  1. #HAMMERSPOON CAPS LOCK INSTALL#
  2. #HAMMERSPOON CAPS LOCK SOFTWARE#
  3. #HAMMERSPOON CAPS LOCK WINDOWS#

Local lowerRight = hs.geometry("1,1 1x1") Local upperRight = hs.geometry("1,0 1x1") Local fullScreen = hs.geometry("0,0 2x2") Return function() hs.t(hs.window.focusedWindow(), to) end Hs.window.animationDuration = 0 - disable animations HyperFocusOrOpen('space', 'Sublime Text')

hammerspoon caps lock

HyperFocus('f', 'Google Chrome', 'Firefox') HyperFocus('i', 'IntelliJ IDEA', 'IntelliJ IDEA-EAP', 'Xcode', 'Android Studio', 'Atom', 'Code') HyperFocusAll('w', 'React Native Debugger', 'Simulator', 'qemu-system-x86_64') Local log = hs.logger.new('main', 'info')ĭEVELOPING_THIS = false - set to true to ease debugging Then open up ~/.hammerspoon/a and add this: - Mike Solomon 2019 Mastering these commands is enough to work extremely efficiently, but I have a few others included that I find useful as well. Next, I have shortcuts for window movement and resizing for the active window: full-screen, two half-screens, four quarter-screens, one to cycle the application between monitors, and one to cycle between instances of the same application. I have a simple set of related commands that are easy to learn and use,īut improve my daily efficiency manyfold.įirst, I have the 10-15 most common applications I use bound to Hyper + a single key, such as Hyper+space to open my editor.

hammerspoon caps lock

#HAMMERSPOON CAPS LOCK WINDOWS#

Switching between and resizing windows in macOS becomes much faster. It lets you arrange, resize, switch between, and open applications and windows on one or more monitors.īy setting up a few basic commands in Hammerspoon, I mostly use it for window management, not unlike other tools like Divvy or SizeUp. It’s time to set up some shortcuts that use Hyper in order to ease window management.

#HAMMERSPOON CAPS LOCK INSTALL#

Then, install this karabiner configuration.Īlternatively, you can download this file and add it by hand to the complex modifications section of That way, we can user Hyper and Escape on the same key, without them interfering. We are going to do that too–but only when tapped. Vim users often remap caps lock to Escape to save their pinky finger some pain. My primary use for Hyper is machine-global shortcut keys,Įspecially for window management with Hammerspoon. We can effectively create a new modifier key. Since no sane application will expect a user to hold all those keys at once, We can make use of Steve Losh’s idea of emulating the extra “Hyper” key introducedīy the Space Cadet keyboard by defining Hyper as control+option+command+shift. Having an extra modifier key open for whatever we want. 1: The “Hyper” key + transform Caps Lock into Escape Some of these improvements require extra software,Īnd there’s a section at the bottom to set that up when needed. Handful of high-value improvements that can go a long way without hours of investment. The time you can spend on this is virtually unbounded,īut I have found there are a few tricks that many people miss-a So it’s worth spending a little time improving common workflows now and then.

#HAMMERSPOON CAPS LOCK SOFTWARE#

Software developers spend hour after hour on their machines,









Hammerspoon caps lock