Skip to content

Instantly share code, notes, and snippets.

@ganesshkumar
Created November 30, 2016 21:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ganesshkumar/2d23c2f3e8a8c81e41ee5f34ac49cc6b to your computer and use it in GitHub Desktop.
Save ganesshkumar/2d23c2f3e8a8c81e41ee5f34ac49cc6b to your computer and use it in GitHub Desktop.
Hammerspoon
function showBrowser()
local wv = hs.webview.new(hs.screen.primaryScreen():frame())
wv:url("http://www.google.com"):windowStyle({"titled", "closable", "resizable"}) :show()
-- bring the webview to front
hs.application.get("Hammerspoon"):activate()
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment