adi1090x / polybar-themes

A huge collection of polybar themes with different styles, colors and variants.
GNU General Public License v3.0
5.67k stars 413 forks source link

polybar date module not switching correctly in polybar-8. #27

Closed MatthijsKok closed 4 years ago

MatthijsKok commented 4 years ago

Hey there, thank you for these great themes, I use them with joy every day. I use your exact config for the date module, posted below. When I click the icon or the time, only the icon switches to the date icon time-alt. The time does not switch to the date in the time-alt format.

Removing the date_i from the modules-right fixes the issue, but I would really like for the icon to be there. When i switch the module order from date_i date to date date_i, the date switches correctly but the icon does not. It seems only the first module defined updates.

Do you have any idea what is happening?

polybar -v polybar 3.4.0 i3 -v i3 version 4.17.1

[module/date]
type = internal/date

interval = 1.0

time = %I:%M %p
time-alt = %Y-%m-%d%

format = <label>
format-background = ${color.mf} 
format-foreground = ${color.fg}
format-padding = 1

label = %time%

[module/date_i]
type = internal/date

interval = 1.0

time = 
time-alt = 

format = <label>
format-background = ${color.amber} 
format-foreground = ${color.fg}
format-padding = 1

label = %time%
MatthijsKok commented 4 years ago

I seem to have found the problem. https://github.com/polybar/polybar/wiki/Known-Issues#with-multiple-modules-of-the-same-type-actions-on-those-modules-control-the-leftmost-module

Is there a different module to display the icon?