Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

polybar_now_scrobbling

Script for outputting now scrobbling track to polybar

Modified idea from 0nse

Setup

  1. Install dependencies: pip install -r requirements.txt
  2. Fetch a Last.fm API key: go wild m8
  3. Export your key and username as environment variables (e.g. in your shell rc file):
export LASTFM_API_KEY="your-api-key"
export LASTFM_USERNAME="your-lastfm-username"

Example snippet from polybar config file:

[module/now_playing]
type = custom/script

exec = "python3 $HOME/.scripts/now_scrobbling.py"

tail = true

format = <label>
format-prefix = ""
format-prefix-foreground = ${colors.foreground}

label = %output:0:50%

Example of this plugin in action

About

Script for outputting currently scrobbled track to polybar

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages