Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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