dotfiles/.config/waybar/modules/custom-weather.jsonc

13 lines
429 B
JSON

{
"custom/weather": {
"exec-if": "which wttrbar",
"exec": "wttrbar --location Alicante",
"restart-interval": 300,
"tooltip": true,
"format": "{}°",
"return-type": "json",
"on-click": "kitty --hold --class center-float fish -c 'wttr Alicante'",
"on-click-right": "kitty --hold --class center-float fish -c 'wttr -v2 Alicante'",
"on-click-middle": "xdg-open https://wttr.in/alicante",
},
}