Created
April 9, 2017 06:45
-
-
Save sairam/c38bd820a9fcfa61a34d2c596424d5f8 to your computer and use it in GitHub Desktop.
Blog - Hammer Spoon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# find the latest configuration at https://github.com/sairam/dotfiles/blob/master/hammerspoon/init.lua | |
hs.hotkey.bind({"alt"}, "C", function() hs.eventtap.keyStrokes(hs.pasteboard.getContents()) end) | |
hs.hotkey.bind({"command"}, "I", function() hs.eventtap.rightClick(hs.mouse.getAbsolutePosition()) end) | |
hs.hotkey.bind({"command"}, "J", function() hs.eventtap.scrollWheel({0, -50}, {}, "pixel") end, nil, function() hs.eventtap.scrollWheel({0, -50}, {}, "pixel") end) | |
hs.hotkey.bind({"command"}, "K", function() hs.eventtap.scrollWheel({0, 50}, {}, "pixel") end, nil, function() hs.eventtap.scrollWheel({0, 50}, {}, "pixel") end) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment