Weather applet for cosmic desktop, using wttr.lerch.org
Find a file
2026-03-02 13:18:20 -08:00
i18n/en cargo generate gh:pop-os/cosmic-app-template 2026-01-20 14:30:28 -08:00
resources cargo generate gh:pop-os/cosmic-app-template 2026-01-20 14:30:28 -08:00
src avoid hourglass when performing the 15 minute refresh 2026-03-02 13:18:20 -08:00
.gitignore initial implementation 2026-01-26 12:42:19 -08:00
.mise.toml initial implementation 2026-01-26 12:42:19 -08:00
Cargo.lock initial implementation 2026-01-26 12:42:19 -08:00
Cargo.toml initial implementation 2026-01-26 12:42:19 -08:00
i18n.toml cargo generate gh:pop-os/cosmic-app-template 2026-01-20 14:30:28 -08:00
justfile ai: work around popup size and get the width right 2026-03-02 13:12:52 -08:00
LICENSE cargo generate gh:pop-os/cosmic-app-template 2026-01-20 14:30:28 -08:00
org.lerch.weather.desktop initial implementation 2026-01-26 12:42:19 -08:00
README.md cargo generate gh:pop-os/cosmic-app-template 2026-01-20 14:30:28 -08:00

Cosmic Weather Applet

Weather applet for COSMIC

Installation

A justfile is included by default for the casey/just command runner.

  • just builds the application with the default just build-release recipe
  • just run builds and runs the application
  • just install installs the project into the system
  • just vendor creates a vendored tarball
  • just build-vendored compiles with vendored dependencies from that tarball
  • just check runs clippy on the project to check for linter warnings
  • just check-json can be used by IDEs that support LSP

Translators

Fluent is used for localization of the software. Fluent's translation files are found in the i18n directory. New translations may copy the English (en) localization of the project, rename en to the desired ISO 639-1 language code, and then translations can be provided for each message identifier. If no translation is necessary, the message may be omitted.

Packaging

If packaging for a Linux distribution, vendor dependencies locally with the vendor rule, and build with the vendored sources using the build-vendored rule. When installing files, use the rootdir and prefix variables to change installation paths.

just vendor
just build-vendored
just rootdir=debian/cosmic-weather-applet prefix=/usr install

It is recommended to build a source tarball with the vendored dependencies, which can typically be done by running just vendor on the host system before it enters the build environment.

Developers

Developers should install rustup and configure their editor to use rust-analyzer. To improve compilation times, disable LTO in the release profile, install the mold linker, and configure sccache for use with Rust. The mold linker will only improve link times if LTO is disabled.