A Discord integration for CMUS player useing java
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Anas Elgarhy 4f0b486acc Update 🥰 3 months ago
.github/workflows Update links 🔗 3 months ago
.idea Add jar configs 3 months ago
Screenshots [ImgBot] Optimize images 6 months ago
archpackage Update 🥰 3 months ago
assets [ImgBot] Optimize images 6 months ago
scripts Up the version 😀 3 months ago
src/main Up the version 😀 3 months ago
.gitignore Add git ignore file 6 months ago
.gitmodules Add aur repo as a submodule 🤭 3 months ago
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 6 months ago
CONTRIBUTING.md Create contributing gide 💙 3 months ago
Config.md Add config doc :P 6 months ago
LICENSE.txt Add MIT license 6 months ago
README.md Improve readme file 🥰🥰 3 months ago
pom.xml Up the version 😀 3 months ago


A Discord Rich Presence for cmus player

Lines of Code Quality Gate Status Technical Debt Reliability Rating Duplicated Lines (%) Vulnerabilities Bugs Security Rating Maintainability Rating Code Smells Codacy Badge CodeFactor

image 1 image 2 image 3 image 4
  • Require jdk-17 or higher
  • Require cmus



  • From aur: yay -S cmus-rpc
  • Manual:
    • Make sure you installed wget
    • Run this command
       curl -s https://raw.githubusercontent.com/Anas-Elgarhy/cmus-rpc/master/scripts/install.sh | sudo bash



  • Manual:

    • Run this command
        curl -s https://raw.githubusercontent.com/Anas-Elgarhy/cmus-rpc/master/scripts/uninstall.sh | sudo bash
  • Requirements for development:

    • jdk-17 or higher
    • Maven
    • IntelliJ IDEA (not required but recommended)


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


cmus-rpc -p1f %title%
cmus-rpc -p1f "%artist% - %title%" -p2f "%album% - %date%"
cmus-rpc -p1f "Anas listening to %title%" -p2f "From %artist%"

How to do auto run when you start the cmus

  • Put the following line in your shellrc file e.g. .bashrc or .zshrc
    alias cmus = 'cmus-rpc --link &>/dev/null & cmus'

Available in

GitHub GitLab BitBucket Codeberg


Quality gate


License MIT