projects
/
dotfiles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4e8f8c6
)
Hammerspoon - add bindings
author
Peng Li
<seudut@gmail.com>
Sun, 5 Nov 2017 13:05:38 +0000
(21:05 +0800)
committer
Peng Li
<seudut@gmail.com>
Sun, 5 Nov 2017 13:05:38 +0000
(21:05 +0800)
hammerspoon/init.lua
patch
|
blob
|
history
diff --git
a/hammerspoon/init.lua
b/hammerspoon/init.lua
index
3263c59
..
f30a5b6
100644
(file)
--- 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")
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)
-- Reacting to application events
-- Move all Finder in front
function applicationWatcher(appName, eventType, appObject)