[doc] update spotify
This commit is contained in:
parent
542d841622
commit
e9b917c214
2 changed files with 15 additions and 18 deletions
|
@ -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.
|
"""Displays the current song being played and allows pausing, skipping ahead, and skipping back.
|
||||||
|
|
||||||
Requires the following library:
|
Requires the following library:
|
||||||
|
@ -23,6 +14,15 @@ contributed by `yvesh <https://github.com/yvesh>`_ - many thanks!
|
||||||
added controls by `LtPeriwinkle <https://github.com/LtPeriwinkle>`_ - many thanks!
|
added controls by `LtPeriwinkle <https://github.com/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):
|
class Module(core.module.Module):
|
||||||
def __init__(self, config, theme):
|
def __init__(self, config, theme):
|
||||||
|
|
|
@ -1123,24 +1123,21 @@ contributed by `rad4day <https://github.com/rad4day>`_ - many thanks!
|
||||||
spotify
|
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:
|
Requires the following library:
|
||||||
* python-dbus
|
* python-dbus
|
||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
* spotify.format: Format string (defaults to '{artist} - {title}')
|
* spotify.format: Format string (defaults to '{artist} - {title}')
|
||||||
Available values are: {album}, {title}, {artist}, {trackNumber}, {playbackStatus}
|
Available values are: {album}, {title}, {artist}, {trackNumber}
|
||||||
* spotify.previous: Change binding for previous song (default is left click)
|
* spotify.layout: Comma-separated list to change order of widgets (defaults to song, previous, pause, next)
|
||||||
* spotify.next: Change binding for next song (default is right click)
|
Widget names are: spotify.song, spotify.prev, spotify.pause, spotify.next
|
||||||
* 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
|
|
||||||
|
|
||||||
|
|
||||||
contributed by `yvesh <https://github.com/yvesh>`_ - many thanks!
|
contributed by `yvesh <https://github.com/yvesh>`_ - many thanks!
|
||||||
|
|
||||||
|
added controls by `LtPeriwinkle <https://github.com/LtPeriwinkle>`_ - many thanks!
|
||||||
|
|
||||||
.. image:: ../screenshots/spotify.png
|
.. image:: ../screenshots/spotify.png
|
||||||
|
|
||||||
stock
|
stock
|
||||||
|
|
Loading…
Reference in a new issue