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
function leftHalf() | |
hs.application.frontmostApplication():selectMenuItem({"Window", "Move & Resize", "Left"}) | |
end | |
function rightHalf() | |
hs.application.frontmostApplication():selectMenuItem({"Window", "Move & Resize", "Right"}) | |
end | |
function fill() | |
hs.application.frontmostApplication():selectMenuItem({"Window", "Fill"}) |
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
hs.eventtap.new( | |
{ hs.eventtap.event.types.otherMouseDown }, | |
function(e) | |
local button = e:getProperty( | |
hs.eventtap.event.properties['mouseEventButtonNumber'] | |
) | |
if button == 2 then | |
m = hs.mouse.absolutePosition() | |
a = hs.application.frontmostApplication() |