Skip to content

BenGH28/qtile-spotify-widget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages