Skip to content

Latest commit

 

History

History
72 lines (56 loc) · 1.89 KB

README.adoc

File metadata and controls

72 lines (56 loc) · 1.89 KB

spotifyd notification

This is a very simple example of using babashka to rewrite into Clojure an existing BASH script that can be found here.

I hope you agree that the Clojure example is nicer :-)

Create (or modify) $HOME/.config/spotifyd/spotifyd.conf adding within the Global section:

[global]
onevent = spotify-notification.clj <client-id> <client-secret> (1)
  1. The client-id and client-secret can be obtained from the spotify developer dashboard.

Important
Ensure that spotifyd-notification.clj is in your path and is executable.
[global]
onevent = spotify-notification.clj 12a1d445b4b4a1a4a216508faebb 11b4e44446dda9aea216518fdeba

Find the full unlicense in the UNLICENSE (and LICENSE) file, but here’s a snippet:

This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.

I welcome feedback. I can usually be found hanging out in the #clojure-uk channel on Clojurians Slack. You can also email me if you wish :-)