Skip to content
markfoundryPublic

About

Spotify widget with live, line-by-line synced lyrics for macOS (WidgetKit + menu bar panel) and Android (home-screen widget + floating lyrics). No account or Spotify API key; lyrics from LRCLIB.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Tideline

Spotify on your desktop and home screen: a widget with track info and controls, plus live, line-by-line synced lyrics. Runs on macOS and Android.

Tideline is an independent project and is not affiliated with or endorsed by Spotify.

macOS medium widget macOS lyrics panel

Android widget, Art style Android widget, Clean style, light Android widget, Clean style, dark Android lyrics screen

  • Widget: album art, title, artist, progress, previous / play-pause / next, and the current lyric line.
  • Lyrics view: synced, karaoke-style, follows the song. Tap or click a line to jump to it.
  • Lyrics come from LRCLIB (free, no key). Spotify only by default.
Where Needs
macOS Notification Center widget + menu bar lyrics panel macOS 14+, Xcode, XcodeGen, Spotify desktop app
Android Home-screen widget + lyrics screen (android/) Android 8+, Spotify app, Android Studio, a USB cable or Wi-Fi

Neither is on an app store. Download a ready-built copy, or build and install it yourself with one script each.

Download

Get the latest build from the Releases page. Each release has:

  • Tideline-macOS-<version>.zip, the Mac app (macOS 14 or later)
  • Tideline-<version>.apk, the Android app (Android 8 or later)
  • SHA256SUMS.txt, to check the downloads

macOS

  1. Unzip it and move Tideline.app to /Applications.
  2. The first launch is blocked, because the app is ad-hoc signed (no Apple account) and not notarized. Right-click it and choose Open. On macOS 15 and later that is not enough: open System Settings > Privacy & Security and click Open Anyway. Or clear the download flag from a terminal:
    xattr -dr com.apple.quarantine /Applications/Tideline.app
  3. Carry on with First run below. After an update macOS may ask again whether Tideline may control Spotify: that permission is tied to the app's signature.

Android

  1. Open the APK on the phone. When Android asks, allow your browser or file manager to install unknown apps.
  2. Carry on with First run below.
  3. Releases are signed with a release key. A copy you built yourself is signed with your debug key, and Android will not update one over the other, so remove a self-built Tideline once before installing the download.

Updates: both apps look for a newer release at most once a day (switch it off in settings) and have a Check for updates button. The Mac app opens the release page. The Android app downloads the APK, checks it against SHA256SUMS.txt and hands it to the Android installer, which still asks you. In-place updates work only between builds signed with the release key.

Use it on macOS

Install from source

brew install xcodegen         # once
scripts/install.sh            # tests, builds Release, copies to /Applications, launches
scripts/install.sh uninstall  # removes the app and its data

First run

  1. When macOS asks whether Tideline may control Spotify, allow it (System Settings > Privacy & Security > Automation).
  2. Click the date and time in the menu bar, choose Edit Widgets, find Tideline and add one. There are two widgets: Now Playing (small, medium, large; the medium and large show lyrics) and Now Playing Mini (2x2, cover art with the three controls, never any lyrics). Both 2x2 widgets put the cover art across the whole background.
  3. Play something in Spotify. The widget fills in and the lyric line follows the song.

Everyday use

  • Widget buttons: previous, play/pause, next, and the lyrics switch (the speech bubble at the top right of the medium and large widgets). The bubble is filled when lyrics are on and an outline when they are off; off shows the cover art full size and stops fetching lyrics. The widget flips play/pause at once and the app confirms with Spotify.
  • Click anywhere else on the widget to open Spotify. The widget hands the click to Tideline, so the app has to be running (launch at login covers that).
  • Lyrics panel: click the menu bar icon. Click a line to jump to that point in the song, the cover or title at the top to open Spotify, or the speech bubble to turn lyrics on or off (it is the same switch as the widget's).
  • Updates: right-click the menu bar icon and choose Check for updates... (or use the settings window). Tideline also checks once a day at launch, which you can switch off in settings. When there is a newer release, the settings window shows Update available with a Download button that opens the release page. Tideline never replaces itself.
  • Launch at login: right-click the menu bar icon. The widget buttons only work while the app is running, so turn this on.
  • Hide the menu bar icon: right-click it and untick Show in menu bar (or use the settings window). The widget keeps working. To bring the icon back, open Tideline from Spotlight or Applications: a small settings window opens with the toggle, launch at login, and an Open lyrics window button.

The build is ad-hoc signed, so no Apple ID is needed. After a rebuild macOS may ask for the Automation permission again (the grant is tied to the signature). With a team: DEVELOPMENT_TEAM=XXXXXXXXXX CODE_SIGN_IDENTITY="Apple Development" scripts/install.sh.

small widget Now Playing Mini widget large widget

Use it on Android

Full guide: android/README.md. The short version:

Install from source

  1. On the phone: Settings, About phone, tap Build number 7 times, then Developer options, turn on USB debugging (or Wireless debugging).
  2. Connect it (USB cable, or adb pair <ip>:<pairing-port> then adb connect <ip>:<connect-port> for Wi-Fi) and accept the prompt on the phone.
  3. On the computer, with Android Studio installed (it provides the JDK and SDK):
android/scripts/install.sh

It builds a release APK, signs it with the debug key and installs it. With no phone connected it only builds and prints the APK path, so you can also copy that file to the phone and open it.

First run

  1. Notification access: open Tideline, tap Grant access, switch Tideline on. Android only shows what is playing to apps with this permission, and Tideline uses it for media sessions only.
  2. Switch greyed out? Android 13+ blocks it for apps installed outside the Play Store. Settings, Apps, Tideline, three dots at the top right, Allow restricted settings, then grant again.
  3. Battery: Settings, Apps, Tideline, Battery, Unrestricted. Otherwise Samsung's battery manager freezes the widget.
  4. Add the widget: tap Add widget in the app, or touch and hold the home screen, Widgets, Tideline. Sizes: 2x2, 4x2, 4x1.

Everyday use

  • Widget: play/pause, previous, next, progress and the current lyric line (wide sizes). Tap the widget to open Spotify.
  • Style: open the Tideline app and pick Art (cover fills the card) or Clean (plain card, follows light/dark mode).
  • Lyrics screen: open it from the app. Tap a line to jump, drag the bar to seek.
  • Floating lyrics: turn on Show over other apps in the app and allow Display over other apps when Android asks. One lyric line then floats over whatever you are using while a song plays. Drag it anywhere, tap the cross to close it.
  • Lyrics off: the Show lyrics switch in settings turns lyrics off. Nothing is fetched and the cover fills the widget.
  • Updates: Check for updates is in the app's settings, which also has the daily check switch and the version number. A newer release shows as a banner with Download.
  • Other players: the Any player switch also follows YouTube Music, browsers and others (Spotify only by default).

How it works (macOS)

Spotify.app --(PlaybackStateChanged notification + AppleScript)--> Tideline host (menu bar agent)
Host --> ~/Library/Application Support/Tideline/{now.json, lyrics.json, art-*.jpg}
Host --> WidgetCenter.reloadTimelines
Widget (sandboxed, read-only access to that folder) --> timeline entry per lyric line
Widget buttons --> Darwin notification --> host runs the AppleScript

The widget is sandboxed and cannot script Spotify or fetch images, so the host app does that and the widget only reads files. App Groups need a team ID, so a sandbox read exception on the data folder is used instead (the path lives in one place: TidelinePaths). On Android, a notification listener gives the app access to the Spotify media session instead; see android/README.md.

Limits (WidgetKit, not bugs)

  • No scrolling, sliders or smooth animation in widgets. Lyric lines advance on scheduled timeline entries, which can drift by a second or two, and a seek needs a reload. The panel has no such limits.
  • The progress bar and time labels tick by themselves (system timers); everything else updates on Spotify events.
  • When a track has no lyrics, the widget uses the cover art as a full-bleed layout instead of an empty lyrics area.
  • Lyric lines in the widget slide and fade between entries on a best-effort basis (WidgetKit decides how entry changes animate). The panel scrolls smoothly.
  • If the host app is not running, the widget buttons do nothing. Use launch at login.

Develop

The macOS widget and the panel share one look (Sources/TidelineUI: palette, backdrop, art, buttons, type), so change the theme there once.

swift test               # core: LRC parser, lyric timeline planner, store, update check
swiftlint lint
scripts/preview.sh       # renders the widget views and panel to tmp/preview/*.png

Versions come from the release tag, and releases are built by GitHub Actions: see docs/RELEASING.md.

The website, https://markfoundry.github.io/tideline/, lives in site/: plain HTML, CSS and a little JavaScript, no build step. Preview it with python3 -m http.server --bind 127.0.0.1 -d site. It deploys to GitHub Pages when site/ changes on main. Its Download buttons read the latest release from the GitHub API, so they need no edits per release.

docs/designs.html has the four design directions that were considered (A, Glass, was built); docs/PLAN.md has the plan and open spikes. Android build and test commands are in android/README.md.

Troubleshooting

  • Widget missing from the gallery (macOS): launch the app once from /Applications, then reopen Edit Widgets. Check with pluginkit -mAvvv -p com.apple.widgetkit-extension | grep tideline. If it still does not appear, sign in to Xcode with an Apple ID and rebuild with a team.
  • "Allow Tideline to control Spotify" in the panel: enable it under Privacy & Security > Automation.
  • "Nothing playing" on Android while music plays: notification access is off, or the app is battery-restricted. See the Android steps above.
  • Android widget stuck on an old song: Android can end Tideline's process when memory runs low, and it does not always restart the listener. Tideline reads the live player again whenever it starts (a tap on the widget, opening the app) and every 30 minutes through the widget's update period, so it recovers by itself. Setting battery to Unrestricted helps the system restart it sooner.
  • No lyrics: LRCLIB does not have every track; the app says so and shows the cover instead.

About

Spotify widget with live, line-by-line synced lyrics for macOS (WidgetKit + menu bar panel) and Android (home-screen widget + floating lyrics). No account or Spotify API key; lyrics from LRCLIB.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages