X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;f=hammerspoon%2Finit.lua;h=f30a5b63368c3db2cb2775f64d406277c5914a5c;hb=67b5f4d9b5c4dbc854ac55b627296ba7aa992d51;hp=3263c590bd38680b274fca99340a5819065d9c69;hpb=937131850a4324bbf8bbf2cf108375ce124f3bd1;p=dotfiles.git 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)