Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dareka826/discord-cmus-rpc

Show current playing cmus song in Discord with RPC
https://github.com/dareka826/discord-cmus-rpc

cmus discord rpc

Last synced: about 6 hours ago
JSON representation

Show current playing cmus song in Discord with RPC

Awesome Lists containing this project

README

        

# discord-cmus-rpc

Display current playing song in cmus on Discord with RPC

## Build

### Requirements

- The same as for discord-rpc.
- A tool which understands the redo build system.

### Commands

```sh
git clone https://github.com/Dareka826/discord-cmus-rpc
cd discord-cmus-rpc
git submodule update --init
redo
```

## Running
While the `cmus-rpcd` binary is running it will check cmus status every second and update the rpc accordingly.

## How the information is displayed

### State

If `tracknumber`, `artist` and `title` are present:
`. - `

If `artist` and `title` are present:
` - `

If `tracknumber` and `title` are present:
`. `

If only `title` is present:
``

If none of the above are present, use the filename:
``

### Details

If `album` and `albumartist` are present:
`[] `

If only `album` is present:
``

If neither are present, nothing is displayed in the details.