Skip to content

Latest commit

 

History

History
65 lines (45 loc) · 1.95 KB

README.md

File metadata and controls

65 lines (45 loc) · 1.95 KB

Spotify

  • a Qtile widget for viewing and interacting your current spotify track

image

Install

Copy the file

  • copy the spotify.py to ~/.config/qtile/ directory. This is the easiest option

Submodule for the dotfile addicts

  • add it as a submodule if you save your dotfiles with git
# using yadm (a git wrapper)
yadm submodule add https://github.com/BenGH28/qtile-spotify-widget ~/.config/qtile/spotify

Note: You only need to do one of these options to have it on your system

In config.py

from spotify import Spotify

#...rest of config

# add Spotify to list of widgets
screens = [
    Screen(
            bottom=bar.Bar(
                widgets=[
                    Spotify(), # add config options as you like them
                ],
                size=24,
                # border_width=[2, 0, 2, 0],  # Draw top and bottom borders
                # border_color=["ff00ff", "000000", "ff00ff", "000000"]  # Borders are magenta
            ),
        ),
    ]
]

Customization

key default description
play_icon '' "icon to display when playing music"
pause_icon '' "icon to display when music paused"
update_interval 0.5 "polling rate in seconds"
format "{icon} {artist}:{album} - {track}" "Spotify display format"
  • see also Qtile's built-in TextBox for more keys to customize

Alternatives

  • Mpris2 a more generic widget using dbus-next that allows you to display music info from any player (audacious, vlc, etc.).

Credits