Forked from ctanis/gist:70a2ef077528e5a5c71f8d8473af3e5b
Created
November 11, 2021 15:41
-
-
Save confluencepoint/4d47c587ab89309414fd9672e8c054f0 to your computer and use it in GitHub Desktop.
use hammerspoon to avoid triggering the menu bar, unless you hold alt
This file contains hidden or 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
| -- 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