diff --git a/bumblebee_status/modules/contrib/spotify.py b/bumblebee_status/modules/contrib/spotify.py index 3f26ef7..eab5573 100644 --- a/bumblebee_status/modules/contrib/spotify.py +++ b/bumblebee_status/modules/contrib/spotify.py @@ -1,12 +1,3 @@ -import sys -import dbus - -import core.module -import core.widget -import core.input -import core.decorators -import util.format - """Displays the current song being played and allows pausing, skipping ahead, and skipping back. Requires the following library: @@ -23,6 +14,15 @@ contributed by `yvesh `_ - many thanks! added controls by `LtPeriwinkle `_ - many thanks! """ +import sys +import dbus + +import core.module +import core.widget +import core.input +import core.decorators +import util.format + class Module(core.module.Module): def __init__(self, config, theme): diff --git a/docs/modules.rst b/docs/modules.rst index ed99936..41366aa 100644 --- a/docs/modules.rst +++ b/docs/modules.rst @@ -1123,24 +1123,21 @@ contributed by `rad4day `_ - many thanks! spotify ~~~~~~~ -Displays the current song being played +Displays the current song being played and allows pausing, skipping ahead, and skipping back. Requires the following library: * python-dbus Parameters: * spotify.format: Format string (defaults to '{artist} - {title}') - Available values are: {album}, {title}, {artist}, {trackNumber}, {playbackStatus} - * spotify.previous: Change binding for previous song (default is left click) - * spotify.next: Change binding for next song (default is right click) - * spotify.pause: Change binding for toggling pause (default is middle click) - - Available options for spotify.previous, spotify.next and spotify.pause are: - LEFT_CLICK, RIGHT_CLICK, MIDDLE_CLICK, SCROLL_UP, SCROLL_DOWN - + Available values are: {album}, {title}, {artist}, {trackNumber} + * spotify.layout: Comma-separated list to change order of widgets (defaults to song, previous, pause, next) + Widget names are: spotify.song, spotify.prev, spotify.pause, spotify.next contributed by `yvesh `_ - many thanks! +added controls by `LtPeriwinkle `_ - many thanks! + .. image:: ../screenshots/spotify.png stock