Skip to content

setting on-click in custom modules makes the module disappear from waybar #785

@DyslexicAtheist

Description

@DyslexicAtheist

Hi,

using this will successfully launch a full wttr.in forecast in a fullscreen terminal, however as soon as the right-click happens the custom/weather model disappears from waybar until waybar (sway) is restarted:

    "custom/weather": {
        "format": "{}",
        "format-alt": "{alt}: {}",
        "format-alt-click": "click-left",
        "interval": 300,
        "return-type": "json",
        "exec": "~/.config/waybar/modules/weather.sh",
        "exec-if": "ping wttr.in -c1",
        "on-click-right": "kitty --start-as fullscreen bash -ci ~/bin/wttr|less -X"
    }

the weather.sh script always returns correct json:

{"text":" 28 to 29°C", "alt":"Paris", "tooltip":"Paris: 28 to 29°C Partly cloudy"}

any ideas?

thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions