Skip to content

stark81/media-controls

 
 

Repository files navigation

Note

This is a fork of media-control by @sakithb, with the purpose of adding a feature to display the current player's lyric information.

What does this extension do?

Show controls and information of the currently playing media in the panel.

Features

  • Customize the extension the way you want it
  • Basic media controls (play/pause/next/previous/loop/shuffle/seek)
  • Mouse actions lets you run different actions via left/middle/right/scroll.
  • Popup with album art and a slider to control the playback
  • Scrolling animations
  • Blacklist players
  • Register a DBus service, receive lyric from clients, and show it

How to use the lyric service ?

  • DBus information

    • busName = "org.gnome.Shell.TrayLyric"

    • objectPath = "/org/gnome/Shell/TrayLyric"

    • interfaceName = "org.gnome.Shell.TrayLyric"

    • UpdateLyric: (lrcObj: string) => void:

      • Parameter: lrcObj, a JSON string in the following format:
        {
          "content": "lyric",
          // Current lyric.If set to "", it will display the media title.
        
          "time": "4.5", 
          // Numeric type, in seconds, used to control the speed and duration
          // of the lyric scrolling.
          
          "sender": "VutronMusic" 
          // Part of your mpris player's name. For exmaple,if the name of your
          // mpris player is ‘org.mpris.MediaPlayer2.VutronMusic’, the sender 
          // should set to 'VutronMusic', or 'MediaPlayer2' or any part of the
          // name, but an inaccurate name may cause the player and the lyrics 
          // to not match correctly.
        }

How to install

Install from extensions.gnome.org (Recommended)(not yet)

Manual installation

Install from source

  • Download archive file from the releases tab
  • Open a terminal in the directory containing the downloaded file
  • Install and enable the extension by executing gnome-extensions install extension.zip --force in the terminal

Reporting issues

  • Make sure your issue isn't a duplicate
  • Include the following information when creating the issue,
    • Extension version
    • Gnome version
    • Your distribution
    • A screenshot if it is possible

Get involved

Any type of contribution is appreciated! If you have any suggestions for new features feel free to open a new issue.

If you are interested in translating, download the po file and translate it. Then open a pull request with the translated file. You can use Gtranslator or Poedit to translate.

If you are interested in contributing code. There are no specific guidelines for contributing. Just make sure you follow the coding style of the project. To update the translation files run ./mediacontrols.sh translations in the extensions directory after your changes are done. This will update the files in the locale folder.

Made with contrib.rocks.

Screenshots

Popup menu

General settings

Panel settings

Position settings

Shortcut settings

Other settings

About

A media indicator for the Gnome shell.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 96.4%
  • Shell 2.5%
  • CSS 1.1%