Select the ‘Hammerspoon icon from your Mac’s menu bar, and then click ‘Reload config.’.You can now put these three scripts to the test: Reference ‘a’ and ‘a’,’ by copy/pasting the following script into ‘a.’.Select ‘File > Open config.’ This launches the default ‘a’ file – at last, this is the file we actually need!.We now need to reference both of these files, from a. Copy/paste your Wi-Fi script into this window.Īt this point, we have a separate ‘a’ and ‘a’ file.Select ‘File > Rename…’ and give this file the name ‘a.’.Select ‘File > Open config.’ Once again this launches the ‘a’ file.Copy/paste your ‘Hello from Hammerspoon’ script into this file.Select ‘File > Open config.’ This launches the default ‘a’ file. lua files, and then reference each script from that all-important a file. In this final section, we’re going to create our scripts as separate. We may have pasted our Wi-Fi script over our original ‘Hello from Hammerspoon’ script, but it is possible to run multiple Hammerspoon scripts side by side. Reconnect to your network, and it should trigger another notification, complete with the name of the network that you’ve just connected to. Try disconnecting from your Wi-Fi network, by selecting the ‘Wi-Fi’ icon in your Mac’s menu bar and choosing ‘Turn off Wi-Fi.’ You should see a notification warning you that the Internet is disconnected.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |