show current lrc of Music Player such as Yesplaymusic and LXMusic on status bar for Ubuntu gnome.
Work for YesPlayMusic and LXMusic.
This project is written in Go.
-
Download release file get_lrc-xxx-linux-x64.tar.xz and extract it.
-
Grant it executable permission and move it to
/usr/local/bin
dir. -
Install gnome extension
executor@raujonas.github.io
and config it add lrc output cmd:echo " 🎤 $(get_lrc) "
, like this: -
Open YesPlayMusic and play a song with LRC, you will see current lrc show on topbar, like this:
after setting open api, current lrc will show on status bar when play a music, like this:
- Get current lrc sentence, auto choose source from all music player.
get_lrc [flags]
- Specific music player
get_lrc [command] [flags]
cmd flags
-- get current lrc sentence, it will auto choose source from all music player.
--yesplayPlayerUrl string optional, specific the playerUrl of yesplaymusic (default "http://127.0.0.1:27232/player")
--lxPlayerUrl string optional, specific the playerUrl of lx music (default "http://localhost:23330/status")
--showErrMsg optional, show error message when internal error.
-d, --defaultValue string optional, specific the default value when internal error and not show error message
yesplay get YesPlayMusic's current lrc.
--currentTrackUr optional, specific the currentTrackUrl of yesplaymusic (default "http://127.0.0.1:10754/lyric?id=").
--playerUrl string optional, specific the playerUrl of yesplaymusic (default "http://127.0.0.1:27232/player").
-d, --defaultValue optional, specific the default value when internal error and not show error message.
--delay optional, specific the progress delay time for current lrc's sentence show, ms unit (default 1000).
--prefix optional, specific the prefix of lrc's sentence (default "歌词:").
--sentenceCount optional, specific show current sentence count (default 1).
--showAll optional, show all sentence of lrc.
--showErrMsg optional, show error message when internal error.
--split optional, specific the split to merge multi lrc's sentence (default "|").
lx get lx's current lrc.
--playerUrl string optional, specific the playerUrl of yesplaymusic (default "http://127.0.0.1:23330/status").
--showErrMsg optional, show error message when internal error.
-d, --defaultValue string optional, specific the default value when internal error and not show error message
help Help about any command.