mihirlad55 / polybar-spotify-module

A collection of lightweight programs for use with a Polybar Spotify Module
GNU General Public License v3.0
142 stars 9 forks source link

Issue with Song Title not Changing when Switching Song #20

Open jblais493 opened 2 years ago

jblais493 commented 2 years ago

I am sure there is a simple fix - my issue is that upon switching song, the text doesn't alter; in order for the text to be updates I have to restart the spotify-listener serveice, but then run into the same issue upon song switch.

Any help would be great appreciated, great module!

mihirlad55 commented 2 years ago

The song title should be changing automatically as long as spotify-listener.service is running in the background. Are you using spotify or spotifyd?

Could you please post your polybar config? Please wrap your config output in:

<details>
  <summary>Click to expand</summary>
  insert polybar config here
</details>
jblais493 commented 2 years ago
Click to expand [colors] ;background = ${xrdb:color0:#222} background = #0000000 background-alt = #444 ;foreground = ${xrdb:color7:#222} foreground = #ffffff foreground-alt = #555 primary = #ffffff secondary = #ffffff alert = #bd2c40 [bar/example] monitor = ${env:MONITOR:DP-4} width = 100% height = 35 ;offset-x = 1% ;offset-y = 1% radius = 0 fixed-center = true enable-ipc = true background = #00000000 foreground = #ffffff line-size = 3 line-color = #f00 border-size = 0 border-color = #00000000 padding-left = 0 padding-right = 2 module-margin-left = 1 module-margin-right = 1 ;font-0 = "NotoSansMono Light Nerd Font Complete":pixelsize=16;1 ;font-0 = Saucecode Pro Nerd Font:style=semibold;pixelsize=20;1 ;font-0 = Montserrat:style=Light:size=16;1 font-0 = JetBrainsMono Nerd Font:style=semibold:pixelsize=18;3 font-1 = Weather Icons:style=Regular:size=18;1 font-2 = Sarasa Gothic HC:style=semibold:pixelsize=18;1 font-3 = Font Awesome 5 Free:style=Regular:pixelsize=16;1 font-4 = Font Awesome 5 Free:style=Solid:pixelsize=16;1 font-5 = Font Awesome 5 Brands:style=Regular:pixelsize=16;1 font-6 = Material Icons:style=Bold:pixelsize=18;1 modules-left = bspwm modules-center = mpd spotify previous playpause next modules-right = weather temperature pulseaudio battery wlan bluetooth date powermenu tray-position = right tray-padding = 2 ;tray-background = #0063ff wm-restack = bspwm ;wm-restack = i3 ;override-redirect = true ;scroll-up = bspwm-desknext ;scroll-down = bspwm-deskprev ;scroll-up = i3wm-wsnext ;scroll-down = i3wm-wsprev cursor-click = pointer cursor-scroll = ns-resize [module/xwindow] type = internal/xwindow label = %title:0:30:...% [module/bspwm] type = internal/bspwm label-font = 2 pin-workspaces = true inline-mode = false enable-click = true enable-scroll = true reverse-scroll = true fuzzy-match = true format = label-dimmed-foreground = #ffffff label-dimmed-occupied = %icon% label-dimmed-occupied-foreground = #626483 label-dimmed-occupied-padding = 2 label-dimmed-empty = %icon% label-dimmed-empty-foreground = #3a3c4e label-dimmed-empty-padding = 2 label-focused = %icon% label-focused-foreground = #f8f8f2 label-focused-background = #ea3a3c4e label-focused-underline = #ffffff label-focused-padding = 2 label-occupied = %icon% label-occupied-foreground = #ffffff label-occupied-padding = 2 label-urgent = %icon% label-urgent-foreground = #f8f8f2 label-urgent-background = #eaff5555 label-urgent-padding = 2 label-empty = %icon% label-empty-foreground = #ffffff label-empty-padding = 2 label-monocle =  label-monocle-foreground = #ffffff label-tiled =  label-tiled-foreground = #ffffff label-fullscreen =  label-fullscreen-foreground = #ffffff label-floating =  label-floating-foreground = #ffffff label-pseudotiled = P label-pseudotiled-foreground = #ffffff label-locked = " " label-locked-foreground = #ffffff label-sticky = " " label-sticky-foreground = #ffffff label-private = " " label-private-foreground = #ffffff ws-icon-0 = 1;一 ws-icon-1 = 2;二 ws-icon-2 = 3;三 ws-icon-3 = 4;四 ws-icon-4 = 5;五 ws-icon-5 = 6;六 ws-icon-6 = 7;七 ws-icon-7 = 8;八 ws-icon-8 = 9;九 ;                 [module/bluetooth] type = custom/script exec = ~/.config/polybar/scripts/bluetooth.sh interval = 2 click-left = exec blueberry click-right = exec ~/.config/polybar/scripts/toggle_bluetooth.sh format-padding = 0 format-background = #00000000 format-foreground = #ffffff [module/weather] type = custom/script exec = ~/.config/polybar/polybar-forecast-linux-x86_64 exec-if = ping openweathermap.org -c 1 interval = 600 label-font = 2 [module/mpd] type = internal/mpd label-song-foreground = ${colors.primary} format-online = icon-prev =  icon-stop =  icon-play =  icon-pause =  icon-next =  label-song-maxlen = 50 label-song-ellipsis = true ;[module/mpd] ;type = internal/mpd ;format-online = ; ;icon-prev =  ;icon-stop =  ;icon-play =  ;icon-pause =  ;icon-next =  ; ;label-song-maxlen = 25 ;label-song-ellipsis = true [module/xbacklight] type = internal/xbacklight format =

As an addendum, the module change occasionally if I let the song play to the end, but it's random if it does or doesn't. Weirdly enough this config works perfectly on my laptop with songs following perfectly. May just be a bug with the font I am using?