Skip to content

fosspointer/audacious-rpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

audacious-rpc

This is a silly program (could have been an audacious plugin), that sets your Discord activity based on the song you're listening to on Audacious. It uses shell utilities such as ffmpeg and audtool to get info about the current song, and also to extract and publish the current song's cover art to freeimage.host via its API.

Compiling

It should work on Linux, assuming you have the necessary build tools installed, as well as audacious/audtool and ffmpeg. If you care enough to tinker with it, you could probably get it to work for multiple platforms. That said, it does use a precompiled version of the discord-rpc library for Linux and assumes /tmp is an accessible directory.

How do I use this?

Run the program inside of a working directory with a JSON file named config.json, containing the following fields:

  • name: the name of the user, used for making up excuses for when the user is idle (i.e. not listening to music).
  • idle_excuses: a list of excuses to pick for why the user is idle (following the format "because {name} is {excuse}").
  • api_key: must contain a valid API key for freeimage.host.
  • application_id: the desired Discord application ID to display.
  • polling_rate: the desired polling rate to use with audtool in seconds.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published