Linux
yay -S sptlrx-bin
nix-env -iA nixos.sptlrx
or if using nixpkgs
nix-env -iA nixpkgs.sptlrx
curl -sSL instl.sh/raitonoberu/sptlrx/linux | bash
Windows
iwr instl.sh/raitonoberu/sptlrx/windows | iex
macOS
curl -sSL instl.sh/raitonoberu/sptlrx/macos | bash
You can also download the binary from the Releases page or build it yourself.
Config file will be created at the first launch. On Linux it's located in ~/.config/sptlrx/config.yaml
. Run sptlrx -h
to see the full path.
# config.yaml
cookie: <your cookie>
player: spotify
If you want to use Spotify as your player or lyrics source, you need to specify your cookie.
Network
tab and go to open.spotify.com.open.spotify.com
.Request Headers
, right click the cookie
field and select Copy value
.You can also set the SPOTIFY_COOKIE
environment variable or pass the --cookie
flag.
TREAT YOUR COOKIE LIKE A PASSWORD AND NEVER SHARE IT
# config.yaml
player: mpd
mpd:
address: 127.0.0.1:6600
password: ""
MPD server will be used as a player.
# config.yaml
player: mopidy
mopidy:
address: 127.0.0.1:6680
Mopidy server will be used as a player.
# config.yaml
player: mpris
mpris:
players: []
Linux only. System player that supports MPRIS protocol will be used. You can also specify a whitelist of players to use, example: players: [rhythmbox, spotifyd, ncspot]
. Run playerctl -l
to get the names.
# config.yaml
player: browser
browser:
port: 8974
You need to install a browser extension. If you don't change the default port, no further configuration is required. Otherwise, create a custom adapter in the extension settings. You can only run one instance on one port.
# config.yaml
local:
folder: ""
If you want to use your local collection of .lrc
files to display lyrics, specify the folder to scan. The application will use files with the most similar name. All other lyrics sources will be disabled.
If you specify your Spotify cookie, the lyrics will be fetched using your account. Otherwise, the API hosted by me will be used. It is also possible to host your own API or use local .lrc
files.
Run sptlrx pipe
to start printing the current lines to stdout. This can be used in various status bars and other applications.
You can pass flags to override the style parameters defined in the config. Example:
sptlrx --current "bold,#FFDFD3,#957DAD" --before "104,faint,italic" --after "104,faint"
List of allowed styles: bold
, italic
, underline
, strikethrough
, blink
, faint
. The colors can be either in HEX format, or ANSI 0-255. The first color represents the foreground, the second represents the background.
Run sptlrx --help
to see all the flags.
MIT License, see LICENSE for additional information.