External Discord Rich Presence provider for cmus, written in Rust.
This is a more minimal version of my cmus-rich-presence Java program.
Since this is my very first Rust program and I'm still pretty terrible at the language, I would recommend using the Java version linked above if you don't mind the extra resource usage. However, I will try to bring this to a similar level of functionality eventually!
crp-rust [flags] [options]
Flags:
-d, --debug Disables rich presence and displays current status on stdout
-h, --help Prints help information
-V, --version Prints version information
Options:
-i, --interval <interval> Polling interval in which the program grabs current status, in milliseconds.
[default: 1000]
-b, --bottom <format> Sets custom formatting for the bottom string
[default: "{artist} - {album} ({date})"]
-t, --top <format> Sets custom formatting for the top string
[default: "{title}"]
You know how it goes.
If you want to build and copy the binary to /usr/bin, you may use the following command:
cargo build --release && sudo cp ./target/release/crp-rust /usr/bin/
After executing, you can easily use the program just by typing crp-rust in a terminal or shell script, assuming /usr/bin is in your PATH (which should be the case)
