tripasect / lyricsx-musixmatch

Automatically find and download the lyrics of your offline current playing song from Spotify - Musixmatch and display it with LyricsX. Currently works only on Mac OS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lyricsx-Musixmatch

Automatically find and download the lyrics of your current offline playing song from Spotify-Musixmatch and display it with LyricsX. Currently works only on Mac OS.

Untitled

Screenshots

lyricsx-musixmatch.mp4

Requirements

Installation

  • Make sure you have LyricsX, SpotiPy and Syrics installed. Modify the .command file to add your client_id, client_secret and the path to nowplaying-cli-1.1.0.command.
  • Make the .command file executable and execute it. It should do what it's supposed to do.
  • Additionaly, you can add a trigger for its execution as an Alfred workflow.

How it Works

It reads your current playing song using 'nowplaying-cli-1.1.0', searches for its trackID on Spotify using 'SpotiPy', downloads the corresponding .lrc lyrics file using 'Syrics', changes its extension to '.lrcx', moves it to default LyricsX folder, relaunches LyricsX for it to notice it's already got the lyrics file.

The 'background-daemon.py' file

Run nohup python3 background-daemon.py to have it running in the background. It repeatedly watches to see if you've changed your current playing song. When it detects change, it launches the fetch-lyrics-from-musixmatch.command, which fetches and shows the lyrics. It keeps watching for change until, UNTIL you stop listening to music altogether for 4 minutes. In that case it automatically breaks its loop and exits. Make sure to run the daemon again in your next listening session. Add an Alfred workflow for convenience. One is appended.

Alfred workflow

My personal Alfred workflow is appended. It needs a bit of configuring on your side. Note that in it, daemon.py points to that same background-daemon.py file.

Screenshot 2023-10-12 at 16 00 12

About

Automatically find and download the lyrics of your offline current playing song from Spotify - Musixmatch and display it with LyricsX. Currently works only on Mac OS.


Languages

Language:Python 100.0%