Waybar icon indicating copy to clipboard operation
Waybar copied to clipboard

Calendar week number is shown incorrectly

Open sirchojin opened this issue 4 years ago • 1 comments

Hello,

I recently tested feature calendar-weeks-pos to show week number besides the week. Unfortunately it does not show the week number as you can see here. Kooha-2022-11-19-15-36-48

My configuration is as below :

    "clock": {
        "timezone": "Europe/Paris",
        "format": "  {:%e %b    %H:%M}",
        "format-alt": "{:%Y-%m-%d}",
        "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
        "today-format": "<span color='#ff6699'><b><u>{}</u></b></span>",
        "calendar-weeks-pos": "left",
        "format-calendar": "<span color='#ecc6d9'><b>{}</b></span>",
        "format-calendar-weeks": "<span color='#99ffdd'><b>{}</b></span>",
        "format-calendar-weekdays": "<span color='#ffcc66'><b>{}</b></span>",
        "interval": 10,
        "on-click": "gnome-calendar"
   }

My environment is LANG=C.UTF-8. I tried to strip configuration to the minimum, but same behavior. I am using version waybar 0.9.15-2 ( https://archlinux.org/packages/community/x86_64/waybar/ )

Thank you for your time.

sirchojin avatar Nov 19 '22 14:11 sirchojin

Hi @gpoudrel can you check this please?

"clock": {
        "format": "{:%H:%M}  ",
        "format-alt": "{:%A, %B %d, %Y (%R)}  ",
        "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
        "calendar-weeks-pos": "right",
        "today-format": "<span color='#ff6699'><b><u>{}</u></b></span>",
        "format-calendar": "<span color='#ecc6d9'><b>{}</b></span>",
        "format-calendar-weeks": "<span color='#99ffdd'><b>W{:%V}</b></span>",
        "format-calendar-weekdays": "<span color='#ffcc66'><b>{}</b></span>",
        "on-scroll": {
                    "calendar": 1
                     }
    }

Such config should fix week format. Actually it applies user specified format

LukashonakV avatar Dec 06 '22 20:12 LukashonakV