flow-wm 0.1.0

A scrolling, infinite-horizontal-canvas tiling window manager for Windows
Documentation
//! Configuration parser, auto-creation, and JSON Schema generation.
//!
//! Defines two TOML config file structures:
//!
//! - [`FlowConfig`] — Application settings (padding, animation).
//!   Loaded from `flow.toml` in the config directory.
//!
//! - [`WindowRulesConfig`] — Window classification rules and default action.
//!   Loaded from `flow-rules.toml` in the config directory.
//!
//! # Config File Lifecycle
//!
//! The configuration system follows a four-phase lifecycle:
//!
//! 1. **Init** — [`lifecycle::init_config_dir`] creates the config directory and writes
//!    default config files and JSON Schemas.
//!
//! 2. **Load** — [`lifecycle::load_app_config`] and [`lifecycle::load_rules_config`] read TOML
//!    files from disk. Each config struct carries `#[serde(default)]` at the container level,
//!    so files may be partial or empty — serde fills missing fields from the struct's
//!    [`Default`] implementation.
//!
//! 3. **Validate** — [`lifecycle::check_config`] validates config files without loading
//!    them into the running daemon.
//!
//! 4. **Use** — The daemon extracts fields from [`FlowConfig`] into the layout engine.
//!
//! See [`lifecycle`] module docs for detailed documentation of each function.

pub mod color;
pub mod dirs;
pub mod history;
pub mod lifecycle;
pub mod schema;
pub mod types;

pub use color::Color;
pub use lifecycle::{
    check_config, init_config_dir, load_app_config, load_default_rules, load_rules_config,
    write_ahk_template,
};
pub use types::BorderConfig;
pub use types::FlowConfig;
pub use types::WindowRulesConfig;