Hammerspoon of course provides a setIcon method on menubar to help us provide an image icon, so we’ll just grab a Slack icon from the web and—whoa, what’s this???
imageData … can be one of the following …
– A string beginning with ASCII: which signifies that the rest of the string is interpreted as a special form of ASCII diagram, which will be rendered to an image and used as the icon.
Ok, drop everything, we’re doing this. Check out this craziness: With simple ASCII character progression, we can define vector art!
tutorial hammerspoon