Skip to content

Instantly share code, notes, and snippets.

@sairam
Created April 9, 2017 06:45
Show Gist options
  • Save sairam/c38bd820a9fcfa61a34d2c596424d5f8 to your computer and use it in GitHub Desktop.
Save sairam/c38bd820a9fcfa61a34d2c596424d5f8 to your computer and use it in GitHub Desktop.
Blog - Hammer Spoon
# 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