Skip to content

Show current lrc of Music Player such as Yesplaymusic and LXMusic on status bar for Ubuntu gnome.

License

Notifications You must be signed in to change notification settings

MarsSwimmer/get_lrc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Get_Lrc

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.

Steps for use

  1. Download release file get_lrc-xxx-linux-x64.tar.xz and extract it.

  2. Grant it executable permission and move it to /usr/local/bin dir.

  3. Install gnome extension executor@raujonas.github.io and config it add lrc output cmd: echo " 🎤 $(get_lrc) ", like this: 截图 2024-03-19 14-30-59

  4. Open YesPlayMusic and play a song with LRC, you will see current lrc show on topbar, like this: preview

  5. Lx Music need enable open api from settings. 截图 2024-03-30 01-57-23

after setting open api, current lrc will show on status bar when play a music, like this: 截图 2024-03-30 02-37-15

Command Usage And Flags

  • Get current lrc sentence, auto choose source from all music player.
get_lrc [flags]
  • Specific music player
get_lrc [command] [flags] 

Available Commands

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.

About

Show current lrc of Music Player such as Yesplaymusic and LXMusic on status bar for Ubuntu gnome.

Resources

License

Stars

Watchers

Forks

Packages

No packages published