Skip to content

Instantly share code, notes, and snippets.

@mikeybeck
Last active September 29, 2018 09:42
Show Gist options
  • Select an option

  • Save mikeybeck/722eadd4e5f248d91a98c9782d94fa0a to your computer and use it in GitHub Desktop.

Select an option

Save mikeybeck/722eadd4e5f248d91a98c9782d94fa0a to your computer and use it in GitHub Desktop.
[URL handler alert] #hammerspoon
hs.urlevent.bind("someAlert", function(eventName, params)
hs.alert.show("Hey there alert")
end)
-- After having this line in init.lua
-- you can then call it from the shell like so
open -g hammerspoon://someAlert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment