You can have this run automatically on your mac using the native launchd system if you want ...(see the spotify_song.sh
file below). Or just start it manually to share what you're listening to. 🤷🏼♂️
Drop the following PLIST into ~/Library/LaunchAgents/com.user.slack-spotify.plist
:
The filename must match the string under Label, replace /PATH/TO/SCRIPT.sh with an actual path to the .sh script above.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">