From b28d76115d7ef315821f5d9cce67e8275cdfa169 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Mon, 17 Jun 2019 04:53:46 +0200 Subject: Extract `window.lua` to `WindowMode.spoon` --- init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index c8fa4a6..b068959 100644 --- a/init.lua +++ b/init.lua @@ -17,9 +17,11 @@ -- Enable command line tool (http://www.hammerspoon.org/docs/hs.ipc.html) require("hs.ipc") -require('window') require('mouse') +hs.loadSpoon('WindowMode') +spoon.WindowMode:bindHotkeys({ mode = {{'ctrl', 'option'}, 'w'} }) + -- Shortcuts to focus tabs in Terminal terminal_app = hs.application.applicationsForBundleID('com.apple.Terminal')[1] -- cgit v1.2.3