Coder Social home page Coder Social logo

ofesseler / gnome-shell-extensions-mediaplayer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from webmastak/gnome-shell-extensions-mediaplayer

0.0 2.0 0.0 3.87 MB

A mediaplayer indicator for the gnome-shell.

Home Page: https://extensions.gnome.org/extension/55/media-player-indicator/

License: GNU General Public License v2.0

gnome-shell-extensions-mediaplayer's Introduction

gnome-shell-extensions-mediaplayer

gnome-shell-extensions-mediaplayer is a simple extension for controlling any MPRIS v2.1 capable media player.

This extension will monitor D-Bus for active players and automatically display them in the GNOME Shell's volume menu by default.

Screenshots

By default, media players shows up in the volume menu:

Screenshot

Notice the support of playlists in Banshee (MPRIS 2.1 playlist interface).


But you can have the media players in a separate menu (see settings):

Screenshot

You can go to the next or previous track by using the mouse wheel on the status icon. You can also play or pause the player by clicking with the middle button on the status icon.

You may also use the status icon to run your favorite media player if no player is running (see the rundefault setting below).

The current track rating can also be displayed and changed depending of the player you are using (see the rating setting below).


gnome-shell-extensions-mediaplayer can be easily configured through http://extensions.gnome.org as well as command-line (all settings are listed below).

Screenshot

Installation

Via extensions.gnome.org

Packages

Manual installation

Git branches master and devel work with GNOME Shell 3.4 and 3.6. For older GNOME versions (3.0 and 3.2), separate branches gnome-shell-3.0 and gnome-shell-3.2 exist, but they won't have most of the new features.

Prerequisites: automake, gnome-common, gettext, glib2 devel files

System-wide:

./autogen.sh
make
sudo make install

In your ~/.local directory:

./autogen.sh
make install-zip

Restart the shell and then enable the extension.

Settings

All settings can be changed from within the gnome-shell-extension-prefs tool, or from the command line.

  • Show the extension in its own menu instead of the volume menu: (default: true)

    gsettings set org.gnome.shell.extensions.mediaplayer volumemenu false
    
  • Start the default media player by clicking on the status icon if no player is running: (default: false)

    gsettings set org.gnome.shell.extensions.mediaplayer rundefault true
    

    You can configure the default media player in GNOME System Settings, under Details → Default Applications.

    Note: This setting has no effect if the extension is shown in the volume menu.

  • Show the volume control slider of the media player: (default: false)

    gsettings set org.gnome.shell.extensions.mediaplayer volume true
    
  • Show the playlists of the media player: (default: false)

    gsettings set org.gnome.shell.extensions.mediaplayer playlists true
    
  • Show the rating of the current track: (default: false)

    gsettings set org.gnome.shell.extensions.mediaplayer rating true
    

    Players supported (get: show the rating, set: set a rating):

    • Banshee (get/set)
    • Rhythmbox (get/set)
    • Clementine (get)
    • Amarok (get)

    Warning: Ratings are not part of the MPRIS specification thus specific code must be written for each player to set or get the current track rating. Note that for some players there will be no support to get/set the rating from this extension. For example, Clementine does not offer any way to set the rating of a song except from the Clementine GUI (http://bit.ly/INFEon).

  • Hide the position slider: (default: true)

    gsettings set org.gnome.shell.extensions.mediaplayer position false
    
  • Set the size of the cover: (default: 80)

    gsettings set org.gnome.shell.extensions.mediaplayer coversize 100
    

Compatible players

Any player that supports the MPRIS v2 spec can be supported.

Note: Many players will require you to enable the MPRIS v2 support manually. If your player is listed but still doesn't work, look for words "MPRIS" or "D-Bus" in the player's plugins.

This extension has been tested with:

  • Amarok
  • Audacious (3.2 with "MPRIS 2 Server" plugin)
  • Banshee (with "MPRIS D-Bus interface" extension)
  • BeatBox
  • Clementine
  • DeaDBeeF (with third-party DeaDBeeF-MPRIS plugin)
  • Exaile (with third-party Sound Menu plugin)
  • GMusicBrowser
  • Guayadeque (0.3.2)
  • mpd (with mpDris2 daemon)
  • Nuvola aka Google Music Frame
  • Pithos
  • Pragha (with MPRIS2 enabled under "Internet Services")
  • Quod Libet (with "MPRIS D-Bus support" plugin)
  • Rhythmbox (with "MPRIS D-Bus interface" plugin)
  • Spotify
  • Tomahawk
  • Totem (with "D-Bus Service" plugin)
  • VLC (2.x with "dbus" control interface)
  • XBMC (with "MPRIS D-Bus interface" add-on)
  • and more...

Known bugs

Track position is not updated correctly

Some players do not send the MPRIS "Seeked" signal so the extension can't update the position slider when the song is seeked from the extension or the player.

Not supported players

  • Nightingale 1.11 – no native MPRIS support, only a third-party v1 plugin

Authors

  • eonpatapon (Jean-Philippe Braun)
  • grawity (Mantas Mikulėnas)

Based on the work of horazont (Jonas Wielicki).

gnome-shell-extensions-mediaplayer's People

Contributors

aegypius avatar atomfrede avatar balthazardroid avatar elder avatar eonpatapon avatar flatzo avatar frandieguez avatar genodeftest avatar grawity avatar horazont avatar josejuan05 avatar keiii avatar kingyes avatar mkortstiege avatar shoden avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.