Skip to content

Instantly share code, notes, and snippets.

View benpoorker's full-sized avatar

Ben Poorker benpoorker

View GitHub Profile
@benpoorker
benpoorker / mouse.lua
Created August 7, 2021 18:04 — forked from cwagner22/mouse.lua
Hammerspoon script to scroll with right click + trackball. Tested with MX Ergo.
-- https://github.com/tekezo/Karabiner/issues/814
-- HANDLE SCROLLING WITH MOUSE BUTTON PRESSED
local scrollMouseButton = 2
local deferred = false
overrideOtherMouseDown =
hs.eventtap.new(
{hs.eventtap.event.types.rightMouseDown},
function(e)
deferred = true