Aucune description https://github.com/anas-elgarhy/cmus-rpc

Anas Elgarhy 871274e4af Remove unused import 🙂 il y a 2 ans
.github a135852625 Update links 🔗 il y a 2 ans
.idea 23aa6df41b Update compiler configs 🙃 il y a 2 ans
Screenshots bc3e77caf1 [ImgBot] Optimize images il y a 2 ans
assets bc3e77caf1 [ImgBot] Optimize images il y a 2 ans
src 871274e4af Remove unused import 🙂 il y a 2 ans
.gitignore 1f1a5e4676 Add git ignore file il y a 2 ans
CODE_OF_CONDUCT.md bb81c1922e Create CODE_OF_CONDUCT.md il y a 2 ans
Config.md bc38788d77 Add config doc :P il y a 2 ans
LICENSE.txt 86e6b25c22 Add MIT license il y a 2 ans
README.md a135852625 Update links 🔗 il y a 2 ans
pom.xml 5d45d32261 Change project name 😃 il y a 2 ans

README.md

A Discord Rich Presence for cmus player

Lines of Code Quality Gate Status Technical Debt Reliability Rating Vulnerabilities Bugs Security Rating Maintainability Rating Code Smells Codacy Badge CodeFactor wakatime

image 1 image 2 image 3 image 4 image 5

  • Requirements for development:
    • jdk-17 or higher
    • Maven
    • IntelliJ IDEA (not required but recommended)

Syntax:

java -jar JCmusIntegrationWithDiscord.jar [Option] [value] [Option] [value] ...

Options:

Option Description Values
-h or --help Show the help -
-v or --version Show the version -
-d or --debug Debug mode -
-l or --link Linking with cmus (close the program if cmus is not running) -
-c or --config Set custom path to config file Path to config file .json
-i or --interval Set interval between checks interval time (seconds)
-s or --sleep Set sleep when there is no activity sleep time (seconds)
-p1f or --partOneFormat Set the format for the first part Format for first part
-p2f or --partTowFormat Set the format for the second part Format for second part

Examples:

java -jar JCmusIntegrationWithDiscord.jar -p1f %title%
java -jar JCmusIntegrationWithDiscord.jar -p1f "%artist% - %title%" -p2f "%album% - %date%"
java -jar JCmusIntegrationWithDiscord.jar -p1f "Anas listening to %title%" -p2f "From %artist%"

How to do auto run when you start the cmus

  • Put the following in your shellrc file e.g. .bashrc or .zshrc bash alias JCmusIntegrationWithDiscord = 'java -jar path/to/jar/JCmusIntegrationWithDiscord.jar' alias cmus = 'JCmusIntegrationWithDiscord --link &>/dev/null & cmus'

Available in

GitHub GitLab BitBucket Codeberg

I use

Quality gate

SonarCloud

License MIT