eabda748f5
- matugen/amane.colors: a matugen template (primary, on_primary, primary_container, primary_fixed, on_surface, on_surface_variant, outline_variant, surface_container high/normal/lowest) that skwd-wall renders into ~/.config/amane/theme on every new wallpaper - theme.rs: a Theme service reads that file and shell.conf twice a second (matugen replaces its output, which a file watch can lose) and fades all ten colours together on one Animation; without a theme file the shell keeps its pink on purple - the island, the idle pill and the workspace pill draw with the theme; white overlays (chips, tracks, hover tints) stay as they are - shell.conf: cover_colors (true: the open media card and equalizer take the cover's gradient as background, accents stay the wallpaper's) and transition_ms (0 switches instantly), both applied without a restart - parse: settings() and rgb(), with a test (6 pass) - checked on the desktop with a hand-written theme file: pill, workspace pill and card recolour, cover_colors switches the card background live
23 lines
571 B
Rust
23 lines
571 B
Rust
mod art;
|
|
mod island;
|
|
mod parse;
|
|
mod sound;
|
|
mod spectrum;
|
|
mod theme;
|
|
mod workspaces;
|
|
|
|
use amane::{App, Palette, Service};
|
|
|
|
fn main() {
|
|
// the card's glow follows the cover art, which art::Art copies to this one path
|
|
Palette::write().open(&art::palette_file(), 8);
|
|
|
|
// one island on every monitor (the card opens only on one of them), and a workspace pill top left on each
|
|
App::new()
|
|
.font("Fira Code")
|
|
.ipc("island", island::command)
|
|
.window_per_monitor(island::view)
|
|
.window_per_monitor(workspaces::view)
|
|
.run();
|
|
}
|