Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save joshmenden/be5f09c2fe24994300cf734eae3c86c7 to your computer and use it in GitHub Desktop.
Save joshmenden/be5f09c2fe24994300cf734eae3c86c7 to your computer and use it in GitHub Desktop.
-- assign the main screen to a variable
s = hs.screen.mainScreen()
-- this command will tell you the pixels that you have to work with in your slice and dic
s:fullFrame()
-- hs.geometry.rect(0.0,0.0,3840.0,2160.0)
-- the name of the monitor; comes in handy later
s:name()
-- U32J59x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment