solisimple.blogg.se

Hammerspoon caps lock escape and control
Hammerspoon caps lock escape and control









hammerspoon caps lock escape and control
  1. #Hammerspoon caps lock escape and control how to#
  2. #Hammerspoon caps lock escape and control install#

Then I made fn+ = pgdn, fn+ = home, fn+' = end and fn+\ = delete, with the same augmented fn+LHS modifiers. I've actually gone kind of crazy with this idea and made my left ctrl, shift and alt behave as fn+ctrl, fn+shift and fn+alt, so that e.g. I miss it dearly when I'm not on Windows.Īnd I actually use caps lock as a "fn" key for hjkl/arrows. Having used both Hammerspoon and AHK, the latter is somehow both terser and more ergonomic. Disable the insert key because I've never wanted its functionality, but I would sometimes hit it accidentally. I previously used Karabiner Elements for making caps lock work as escape when tapped and control when held, but I was able to uninstall Karabiner because Hammerspoon was sufficient.ĥ. I use this in conjunction with remapping caps lock to control in macOS system preferences. Because macOS would frequently get it wrong, including treating my monitor as a speaker for some reason (it doesn't have built-in speakers).Ĥ. Automatically switch audio input and output devices according to my specified priority order. By holding it down and pressing another key, I can switch between specific programs without cycling. Use shift when pasting something to simulate typing in the text instead, getting around websites that block pasting.Ģ. But once you get used it, it’s much faster to switch between applications.I've started to do similar things on macOS using Hammerspoon. It takes some time to suppress the urge to press Cmd+Tab, and use the new shortcuts. You can use it instead of going to the console and click “Reload config”. If you have alrady ran the script, and are going to further modify it, the Caps+R shortcut should have registered to reload the config of Hammerspoon. You can change the mapping as you like.Īfter updating the script, you have to reload it. I’ve set up a few Caps+? shortcuts for my frequently used applications. launchOrFocus (v ) - if hs.application.get(v):isFrontmost() then - hs.application.get(v):hide() - else - hs.application.launchOrFocus(v) - end end ) end HyperKey = for k, v in pairs (appShortcutMap ) do

#Hammerspoon caps lock escape and control how to#

It doesn’t matter if you don’t know how to write Lua yet. The final step is to create your ~/.hammerspoon/a.

#Hammerspoon caps lock escape and control install#

Follow the instruction and go to github release page to download and install it. Now we need Hammerspoon to define what will be executed after pressing our hyper key shortcuts. Hammerspoon - define the action of shortcut

hammerspoon caps lock escape and control hammerspoon caps lock escape and control

(btw I’ve been long used to have Caps replaced with Esc).Ģ. Actually only the CAPS_LOCK to HYPER (SHIFT+COMMAND+OPTION+CONTROL) or ESCAPE (If Alone) rule is needed.

  • don’t want to use too-simple shortcuts that might have been used by other applications alreadyįollow the instructions from the official website to install application, and don’t miss all the security config changes required.Īfter Karabiner is properly set up, go to KE-complex_modifications to import this CAPS_LOCK to Hyper/Escape rule set.
  • We’re going to use it to change the key caps to shift+cmd+option+ctrl (“hyper key”), because we Karabiner is a popular keyboard customier for macOS. Karabiner-Elements - key combination mapping Let’s setup a few custom shortcuts like caps+E and caps+S switch between your most used applications like VS code, Slack and Chrome (on macOS)! 1. Using “Cmd + Space” to search for application is ok, but too slow for frequently used applications. Switching applications with keyboard shortcut on macOSĪt some point, simple “Cmd + Tab” is not fast and precise enough to switch between applications.











    Hammerspoon caps lock escape and control