Skip to content

dharrigan/spotifyd-notification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 :-)

About

An example of using Babashka to show spotifyd notifications

Resources

License

Unlicense, Unlicense licenses found

Licenses found

Unlicense
LICENSE
Unlicense
UNLICENSE

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published