No Description

mergify[bot] 69af833d10 Merge pull request #23 from anas-stuff/renovate/actions-checkout-4.x 8 months ago
.github 515e603c4d chore(deps): update actions/checkout action to v4 8 months ago
.idea 724dc107d5 Add jar configs ☕ 1 year ago
Screenshots bc3e77caf1 [ImgBot] Optimize images 2 years ago
archpackage 4f0b486acc Update 🥰 1 year ago
assets bc3e77caf1 [ImgBot] Optimize images 2 years ago
scripts fba90c2293 Up the version 😀 1 year ago
src fba90c2293 Up the version 😀 1 year ago
.gitignore 1f1a5e4676 Add git ignore file 2 years ago
.gitmodules 76d609de6f Add aur repo as a submodule 🤭 1 year ago
.mergify.yml f0538c7053 ci(Mergify): configuration update 1 year ago
CODE_OF_CONDUCT.md bb81c1922e Create CODE_OF_CONDUCT.md 2 years ago
CONTRIBUTING.md a52fb93bed Create contributing gide 💙 1 year ago
Config.md bc38788d77 Add config doc :P 2 years ago
LICENSE.txt 86e6b25c22 Add MIT license 2 years ago
README.md 740adb339c Improve readme file 🥰🥰 1 year ago
pom.xml dc31f4a4e9 fix: upgrade com.fasterxml.jackson.core:jackson-databind from 2.13.4.2 to 2.14.1 1 year ago
renovate.json 33facb49ae Add renovate.json 1 year ago

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

image 1 image 2 image 3 image 4

  • Require jdk-17 or higher
  • Require cmus

    Install

Linux

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

Uninstall

Linux

  • Manual:

    • Run this command bash 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)

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:

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 bash alias cmus = 'cmus-rpc --link &>/dev/null & cmus'

Available in

GitHub GitLab BitBucket Codeberg

Recourses

Quality gate

SonarCloud

License MIT