Skip to content

Instantly share code, notes, and snippets.

View jreybert's full-sized avatar

Jérôme Reybert jreybert

  • TiempoSecure
  • Grenoble
View GitHub Profile
@jreybert
jreybert / spotify.py
Created January 17, 2018 09:59
enhanced py3status spotify module
# -*- coding: utf-8 -*-
"""
Display song currently playing in Spotify.
Configuration parameters:
cache_timeout: how often to update the bar (default 5)
format: see placeholders below (default '{artist} : {title}')
format_down: define output if spotify is not running
(default 'Spotify not running')
format_stopped: define output if spotify is not playing