Table of Contents
-
notify-send (comes with libnotify)
Create (or modify) $HOME/.config/spotifyd/spotifyd.conf
adding within the
Global
section:
[global] onevent = spotify-notification.clj <client-id> <client-secret> (1)
-
The
client-id
andclient-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 :-)