~/swaydesk/components/weather

← All components

Weather

Weather

Weather

The forecast for today and the next days, for the city you set or the one your IP points to.

  • Uses °C and km/h, with 24-hour times.
  • Now: the condition, temperature, feels like, high and low, humidity, and wind with its direction.
  • The next hours in three-hour blocks, with the chance of rain when it’s 10% or more.
  • The next three days: the condition, low and high, and the highest chance of rain.
  • Sunrise and sunset, and the time of the data; day and night icons follow the sun.
  • Without a connection, it keeps the last data for up to 6 hours.
  • Set your city with weather_location in config.toml; otherwise it comes from your IP.
  • Refresh fetches new data; the wttr.in link opens the forecast in the browser.
  • Right click on the temperature opens GNOME Weather, when it’s installed.
  • After you change weather_location, the icon and the popup move to the new city right away.

Rust + GTK 4 · source · More in the guide · turn off: [enabled.bar] weather = false

Install it alone

Only this component, without the full session. First add the Swaydesk repository, as on the page Install.

Debian 13

sudo apt install swaydesk-weather

Ubuntu 26.04 · Mint 27

sudo apt install swaydesk-weather

Arch Linux

sudo pacman -Syu swaydesk-weather noto-fonts-emoji

pacman doesn't install optional dependencies, so the line already has the ones apt installs by itself.

Start it on plain Sway

It starts from its Waybar module, below.

In Waybar

In ~/.config/waybar/config.jsonc, add "custom/swaydesk-weather" to modules-left, modules-center or modules-right, and paste the module from this file next to your other modules:

/usr/share/swaydesk/waybar/swaydesk-weather.jsonc

The file's first lines say what each click does. The icons come from the Symbols Nerd Font, which the package brings.

Shortcuts

Click the temperature

Those of the Swaydesk profile, the default. The other profiles are in Shortcuts.