dotfiles/hammerspoon/cheatsheet.lua
2018-08-28 19:58:52 +03:00

8 lines
235 B
Lua

hs.loadSpoon("KSheet")
modal = hs.hotkey.modal.new({"cmd", "alt", "ctrl"}, "c")
function modal:entered() spoon.KSheet:show() end
function modal:exited() spoon.KSheet:hide() end
modal:bind('', 'escape', function() modal:exit() end)