- a Qtile widget for viewing and interacting your current spotify track
- copy the
spotify.pyto~/.config/qtile/directory. This is the easiest option
- 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/spotifyNote: You only need to do one of these options to have it on your system
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
),
),
]
]| 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
TextBoxfor more keys to customize
- Mpris2 a more generic widget using
dbus-nextthat allows you to display music info from any player (audacious, vlc, etc.).
- Feqzz/tmux-spotify-info for getting the relevant Spotify info from dbus.
