Skip to content

Instantly share code, notes, and snippets.

View zkanda's full-sized avatar
🌴
palm trees

Zakatell zkanda

🌴
palm trees
View GitHub Profile
@zkanda
zkanda / ctrlTap.lua
Created February 13, 2021 17:46 — forked from kbussell/ctrlTap.lua
Send escape key if the ctrl key is tapped. (Used along side remapping my Caps Lock key to ctrl) Thanks to @asmagill 's examples for a starting point.
local alert = require("hs.alert")
local timer = require("hs.timer")
local eventtap = require("hs.eventtap")
local events = eventtap.event.types
local module = {}
-- timeout for ctrol key
module.timeFrame = .25