A simple CLI client for displaying synchronized lyrics in the terminal.
- Python 3
playerctl(for Spotify controls & track status)- Spotify only (for now)
Install playerctl:
# Arch Linux
sudo pacman -S playerctl
# Fedora
sudo dnf install playerctl
# Debian / Ubuntu
sudo apt install playerctlsource <(curl -fsSL https://raw.githubusercontent.com/strob3/lyrcli/main/install.sh)source <(curl -fsSL https://raw.githubusercontent.com/strob3/lyrcli/main/install.sh) -- --uninstallStart Spotify and play a song, then run lyrcli in the terminal.
| Key | Action |
|---|---|
space |
play / pause |
- / + |
volume down / up |
[ / ] |
seek back / forward |
, / . |
lyric offset earlier / later |
up / k |
scroll plain lyrics up |
down / j |
scroll plain lyrics down |
n |
next |
p |
previous |
r |
restart current track |
? |
help |
q |
quit |
Use -d or --debug to collect debug information on a specific song:
lyrcli -d Debug information is collected while the program runs and printed after exiting.
User-configurable settings are stored in:
~/.config/lyrcli/config.conf# keep default values for best experience
[lyrics]
# lyric sync offset in seconds (positive = later, negative = earlier)
time_offset = 0.00
# number of lyric lines displayed before and after the active lyric
lines_before = 5
lines_after = 5
[application]
# main ui loop refresh interval in seconds
loop_interval = 0.05
# interval to poll playerctl for track changes (seconds)
track_check_interval = 0.5
# interval between lyrics retry attempts if not found (seconds)
lyrics_retry_interval = 5.0
# delay before showing "no lyrics found" while searching (seconds)
lyrics_not_found_delay = 20.0
[terminal]
# text alignment: left, center, right, line-center, line-right
alignment = centerThis project is licensed under the MIT License. See the LICENSE file for details.
