From 67b5f4d9b5c4dbc854ac55b627296ba7aa992d51 Mon Sep 17 00:00:00 2001 From: Peng Li Date: Sun, 5 Nov 2017 21:05:38 +0800 Subject: [PATCH] Hammerspoon - add bindings --- hammerspoon/init.lua | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/hammerspoon/init.lua b/hammerspoon/init.lua index 3263c59..f30a5b6 100644 --- a/hammerspoon/init.lua +++ b/hammerspoon/init.lua @@ -10,6 +10,21 @@ hs.hotkey.bind({"cmd", "alt", "ctrl"}, "R", function() end) hs.alert.show("Config loaded") +---- Right click +--hs.hotkey.bind({"cmd,", "alt", "ctrl"}, "l", function() +-- hs.eventtap.rightClick(hs.mouse.getAbsolutePosition()) +--end) + +-- Donw : For firefox vimperator +hs.hotkey.bind({"cmd,", "ctrl"}, "n", function() + hs.eventtap.keyStroke({}, 'down') +end) + +-- Up +hs.hotkey.bind({"cmd,", "ctrl"}, "p", function() + hs.eventtap.keyStroke({}, 'up') +end) + -- Reacting to application events -- Move all Finder in front function applicationWatcher(appName, eventType, appObject) -- 2.11.0