Alexays / Waybar

Highly customizable Wayland bar for Sway and Wlroots based compositors. :v: :tada:
MIT License
6.38k stars 696 forks source link

Clock calendar tooltip stops working after reloading with SIGUSR2 #3383

Closed fred21O4 closed 5 days ago

fred21O4 commented 3 months ago

After reloading with SIGUSR2 the calendar tooltip is just an empty box, as can be seen in attached images

Before SIGUSR2 image

After SIGUSR2 image

waybar config.jsonc

[
    {
        "height": 45,
        "layer": "top",
        "modules-left": [
            "hyprland/workspaces"
        ],
        "modules-center": [
            "clock"
        ],
        "modules-right": [
            "tray",
            "battery"
        ],
        "output": [
            "*"
        ],
        "position": "bottom",
        "tray": {
            "spacing": 10
        },
        "clock": {
            "format": "{:%H:%M}  ",
            "format-alt": "{:%A, %B %d, %Y (%R)} 󰃰 ",
            "tooltip-format": "<tt><small>{calendar}</small></tt>",
            "calendar": {
                "mode": "year",
                "mode-mon-col": 3,
                "weeks-pos": "right",
                "on-scroll": 1,
                "format": {
                    "months": "<span color='#cba6f7'><b>{}</b></span>",
                    "days": "<span color='#585b70'><b>{}</b></span>",
                    "weeks": "<span color='#cdd6f4'><b>W{}</b></span>",
                    "weekdays": "<span color='#cdd6f4'><b>{}</b></span>",
                    "today": "<span color='#b4befe'><b><u>{}</u></b></span>"
                }
            },
            "actions": {
                "on-click-right": "mode",
                "on-click-forward": "tz_up",
                "on-click-backward": "tz_down",
                "on-scroll-up": "shift_up",
                "on-scroll-down": "shift_down"
            }
        },
        "battery": {
            "interval": 5,
            "states": {
                "10": 10,
                "20": 20,
                "30": 30,
                "40": 40,
                "50": 50,
                "60": 60,
                "70": 70,
                "80": 80,
                "90": 90,
                "100": 100
            },
            "format-discharging-10": "{capacity}% 󰁺",
            "format-charging-10": "{capacity}% 󰢜 ",
            "format-discharging-20": "{capacity}% 󰁻",
            "format-charging-20": "{capacity}% 󰂆 ",
            "format-discharging-30": "{capacity}% 󰁼",
            "format-charging-30": "{capacity}% 󰂇 ",
            "format-discharging-40": "{capacity}% 󰁽",
            "format-charging-40": "{capacity}% 󰂈 ",
            "format-discharging-50": "{capacity}% 󰁾",
            "format-charging-50": "{capacity}% 󰢝 ",
            "format-discharging-60": "{capacity}% 󰁿",
            "format-charging-60": "{capacity}% 󰂉 ",
            "format-discharging-70": "{capacity}% 󰂀",
            "format-charging-70": "{capacity}% 󰢞 ",
            "format-discharging-80": "{capacity}% 󰂁",
            "format-charging-80": "{capacity}% 󰂊 ",
            "format-discharging-90": "{capacity}% 󰂂",
            "format-charging-90": "{capacity}% 󰂋 ",
            "format-discharging-100": "{capacity}% 󰁹",
            "format-full-100": "{capacity}% 󰂅 "
        }
    }
]

waybar style.css

* {
  font-size: 15px;
}

window {
  background-color: transparent;
}

tooltip {
  background-color: @theme_bg_color;
  color: @theme_fg_color;
}

button {
  border-radius: 5px;
  margin-top: 5px;
}
ghost commented 3 months ago

I confirm. Moreover, my calendar often does not appear after the system boots.

LukashonakV commented 3 months ago

Hi @fred21O4 , thanks for the issue. Also can reproduce it. Let me check...

keliss commented 1 week ago

Hi @LukashonakV, any news on this? I've also encountered this issue. No biggie, but it's been there for a while now...

LukashonakV commented 5 days ago

Hi @keliss , wait for linked MR.