Last active
September 29, 2018 09:42
-
-
Save mikeybeck/722eadd4e5f248d91a98c9782d94fa0a to your computer and use it in GitHub Desktop.
[URL handler alert] #hammerspoon
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.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