PrayagS / polybar-spotify

:musical_note: Spotify status and controls module for Polybar with text scrolling
MIT License
585 stars 38 forks source link

Constant flickering #1

Closed Zanark closed 4 years ago

Zanark commented 4 years ago

Good Afternoon @PrayagS

I loved your polybar module however I'm having a small issue. I do not know much about bash scripting yet therefore I would like to consult you for some help regarding this issue.

The player keeps flickering and this message appears when I pause the player

polybar-msg: No channel available for pid

I tried editing the bash script but still got no idea whats causing the issue.

P.S. Can you please share the fonts you are using for polybar, I was unable to display the prev and next icons on mine.

PrayagS commented 4 years ago

https://github.com/PrayagS/polybar-spotify/blob/8c0881fc92fe586f05fd9ff741b7ffb015175ce8/get_spotify_status.sh#L6

The line showed above is one of the two lines in the script that control the play-pause icons. What I need you to verify is that,

And as far as the fonts are concerned, just use a Nerd Font variant of your favorite font. The icons will render fine if you use those fonts.

Zanark commented 4 years ago

@PrayagS thanks, it indeed was now-playing instead of my polybar's name.

Yes I'm using a Nerd font, but it still doesn't work, will look into the issue. Thanx a ton for replying so soon :smile:

PrayagS commented 4 years ago

Just make sure to update your font cache after you installed the new font by running fc-cache -rf.

And check whether what you're writing in the polybar config as the font name matches with the font you want. So for example, if you wrote JetBrainsMono Nerd Font in your polybar config, run fc-match "JetBrainsMono Nerd Font" and verify whether the string is matching with the exact font you want.

I'm closing the issue for now but let me know if you are still facing problems.