Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chriszarate/controlescmap.spoon
Hammerspoon smart map: tap Control for Esc, hold for Control
https://github.com/chriszarate/controlescmap.spoon
Last synced: 14 days ago
JSON representation
Hammerspoon smart map: tap Control for Esc, hold for Control
- Host: GitHub
- URL: https://github.com/chriszarate/controlescmap.spoon
- Owner: chriszarate
- Created: 2020-05-03T19:29:21.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-07-06T14:40:21.000Z (over 3 years ago)
- Last Synced: 2024-10-19T04:53:34.512Z (25 days ago)
- Language: Lua
- Homepage:
- Size: 2.93 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Hammerspoon Control / Escape smart map
Map Control to both Esc and Control—tap for
Esc, hold for Control.This spoon works best when you map another key to Control to make it
more accessible. I recommend Caps Lock, which is [easy to do][map] in
MacOS.## Loading the sppon
Clone this repo in `~/.hammerspoon/Spoons/`. (After doing so, the path to this
readme should be `~/.hammerspoon/Spoons/ControlEscMap.spoon/readme.md`.Now load the spoon from your Hammerspoon config:
```lua
hs.loadSpoon('ControlEscMap')
spoon.ControlEscMap:start({timeout = 0.2})
```# Configuration
- `timeout`: Maximum time in seconds that will be considered a tap (default 0.2)
[map]: https://coderwall.com/p/cq_lkg/remapping-caps-lock-key-to-something-more-natural-on-mac-os-x