Abdul-Hafeez Shuaib

← All work

Side project

Tunebar

A GNOME Shell extension that puts media controls in the top panel.

  • JavaScript
  • GNOME Shell 45–51
  • D-Bus
  • MPRIS

View on GitHub ↗

Tunebar in the GNOME top panel, with its popup showing album art, a seek bar and playback controls

Overview

Tunebar shows the current track in the GNOME top panel, with playback controls and a popup for any media player that supports the Linux MPRIS standard.

Inside the project

Panel and popup

Album art, scrolling track title, previous, play and next, a seek bar, shuffle, loop and switching between players.

Player handling

Watches D-Bus for players and picks the pinned one, or the one that started playing most recently.

Resilience

Copes with missing or bad metadata and cleans up every connection when disabled.

Album art

Downloads, caches and rounds cover images, dropping out-of-date results.

Settings

A preferences window for position, label format, ignored players and a pinned player.

Compatibility

Feature detection keeps one codebase working across several GNOME versions.