If I close hammerspoon or comment out the loading of the script from the a file, then the problem disappears. I think what is happening is when I release caps lock it taps escape which makes the menu disappear. So if I want to click something in that menu I have to keep control held down. Then as soon as I release control, the menu disappears. Let's say I am in Chrome, and I control-click (which does a right click), so as to access the right-click menu. But either way, the hammerspoon script gives me the same issue. #HAMMERSPOON CAPS LOCK ESCAPE AND CONTROL MAC OS#(though the Mac OS has an option too, under 'system preferences'.'keyboard'.'modifier keys'). The script requires that I use some external software, karabiner elements, to map caps lock to control. I have installed hammerspoon and have a load the script. Check out jasonrudolph/keyboard for even more fun.I don't know much about hammerspoon, but I am using vim a bit, and I want a setup whereby if I tap caps lock it taps escape, and if I hold caps lock, it holds the control key.Īnd there is a script written(not by me), apparently for this or some such purpose here. Lucky for you, there's more where this came from. Still reading? Dude, you're pretty serious about your keyboard. #HAMMERSPOON CAPS LOCK ESCAPE AND CONTROL CODE#This code is an adaptation of their work: macos productivity osx hammerspoon windows-manager. #HAMMERSPOON CAPS LOCK ESCAPE AND CONTROL WINDOWS#Intuitive and clever mechanism for moving windows using only arrows, even resizing windows by thirds or quarters For OSX. Shout-out to and for the original implementation of this functionality. We can use caps lock to give us control and escape right on the home row. Just look for included with the latest release. If you prefer to roll your own Hammerspoon config, this code is also available as a Spoon. Open System Preferences, navigate to Keyboard > Modifier Keys, and set the caps lock key to control. With one more bit of setup, you'll be able to hold caps lock for control, and tap caps lock for escape: Script/setup Optional: You're just a few seconds away from a more useful caps lock key Git clone ~/.hammerspoon/Spoons/ControlEscape.spoonĬd ~/.hammerspoon/Spoons/ControlEscape.spoon This functionality is developed and tested with the following dependencies: We can use caps lock to give us control and escape right on the home row. By repurposing the anachronistic caps lock key, we can skip the acrobatics needed to reach the physical control key. #HAMMERSPOON CAPS LOCK ESCAPE AND CONTROL MANUAL#M61 product instruction manual Win/Mac system FN combination keyboard. Press and Hold the Escape button (Esc), and Caps Lock (Caps) Plug in the keyboard to a USB port. What's more useful than a "more useful control key?" A more useful and more-easily reachable control key, of course. Holding down Caps Lock and hitting a key should give you the result X. If you've got one of those fancy new Touch Bar Macs, you might find yourself longing for the good ol' days of a tactile escape key. If control is held down and used in combination with another key, then we can let it provide the normal control key behavior Over the last few years, various people have used Karabiner to remap Caps Lock to cmd+shift+opt+ctrl, which is such an unusual combination of modifier keys, that it effectively makes Caps behave as a completely new modifier (which we have collectively called 'Hyper', in reference to old UNIX workstation keyboards).And for a time, it was good.If control is pressed and released in isolation, we can interpret it as escape.With that in mind, we can teach the control key to pull double duty: This means that we can combine them onto a single key without losing any useful functionality!" "There are two different ways to use and they’re each only useful in one of those ways. A more useful control keyĪs Steve Losh points out in his Modern Space Cadet post, there are "keys you hold down to change how other keys behave, but that (usually) don’t do anything if you use them on their own" (e.g., control), and there are "keys that you press and release but don’t want to 'repeat' as you hold them" (e.g., escape).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |