Created
March 31, 2022 05:19
-
-
Save raxigan/588bb3c97ec2a2a3b3042846fbf7fe51 to your computer and use it in GitHub Desktop.
Hammerspoon script to disable Mission Control on macOS
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
disableTopScreenEdgeForDragging = hs.eventtap.new({ hs.eventtap.event.types.leftMouseDragged }, function(e) | |
local loc = e:location() | |
if loc.y == 0.0 then | |
hs.mouse.setAbsolutePosition({ x = loc.x, y = 0.01 }, | |
1337 -- a hack, do not remove | |
) | |
end | |
end) | |
disableTopScreenEdgeForDragging:start() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@raxigan Yeah, the original issue is still present - you have to drag quite quickly and violently to the top of the screen but it still triggers mission control. It annoyingly interferes with the new native macOS tiling system...
The only other tool I've seen where you can disable this is BetterSnapTool.