This is a fork of media-control by @sakithb, with the purpose of adding a feature to display the current player's lyric information.
Show controls and information of the currently playing media in the panel.
- 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
-
-
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. }
- Parameter: lrcObj, a JSON string in the following format:
-
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
- 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
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.