Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save confluencepoint/4d47c587ab89309414fd9672e8c054f0 to your computer and use it in GitHub Desktop.

Select an option

Save confluencepoint/4d47c587ab89309414fd9672e8c054f0 to your computer and use it in GitHub Desktop.
use hammerspoon to avoid triggering the menu bar, unless you hold alt
-- don't trigger menubar in fullscreen mode unless you hold alt
stopmenu=hs.eventtap.new({ hs.eventtap.event.types.mouseMoved }, function(e)
local flags=e:getFlags()
if not flags.alt then
if e:location().y<1 then
e:location().y=1
return e
end
end
return nil
end)
stopmenu:start()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment