# caelestia-dots/cli architecture

> Architecture diagram of the GitHub repository caelestia-dots/cli, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-22). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/caelestia-dots/cli
- Repository: https://github.com/caelestia-dots/cli

## Overview

Caelestia CLI is the control plane for a Linux desktop dotfiles setup. Users invoke subcommands to manage dotfiles, wallpapers and color schemes, or desktop utilities; wallpaper-derived and selected schemes can then theme supported applications. The graph preserves the documented command families and the central dotfiles install/update stages. Edges are limited to relationships visible in the README, excerpts, or SOURCE INDEX; unsampled command internals and optional integrations are not inferred.

Main entry points: [`src/caelestia/parser.py`](https://github.com/caelestia-dots/cli/blob/main/src/caelestia/parser.py) (Command parser), [`src/caelestia/subcommands/update.py`](https://github.com/caelestia-dots/cli/blob/main/src/caelestia/subcommands/update.py) (Update dotfiles), [`src/caelestia/utils/hypr.py`](https://github.com/caelestia-dots/cli/blob/main/src/caelestia/utils/hypr.py) (Hyprland interface), [`src/caelestia/subcommands/install.py`](https://github.com/caelestia-dots/cli/blob/main/src/caelestia/subcommands/install.py) (Install dotfiles)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["CLI entry"]
  node_parser["Command parser<br/>[parser.py]"]
end

subgraph group_dots["Dotfiles management"]
  node_installer["Install dotfiles<br/>[install.py]"]
  node_updater["Update dotfiles<br/>[update.py]"]
  node_manifest["Manifest model<br/>[manifest.py]"]
  node_source["Dotfiles source<br/>[source.py]"]
  node_deployer["File deployment<br/>[deployer.py]"]
  node_packages["Package install<br/>[packages.py]"]
  node_dotsstate["Install state<br/>[state.py]"]
end

subgraph group_appearance["Appearance"]
  node_schemecommand["Scheme commands<br/>[scheme.py]"]
  node_wallpapercommand["Wallpaper command<br/>[wallpaper.py]"]
  node_wallpaper["Wallpaper processing<br/>[wallpaper.py]"]
  node_schemes[("Scheme state<br/>[scheme.py]")]
  node_material["Material generation<br/>[generator.py]"]
  node_theme["Application theming<br/>[theme.py]"]
  node_templates["Theme templates"]
end

subgraph group_desktop["Desktop utilities"]
  node_screenshot["Screenshot<br/>[screenshot.py]"]
  node_record["Screen recording<br/>[record.py]"]
  node_clipboard["Clipboard history<br/>[clipboard.py]"]
  node_emoji["Emoji utilities<br/>[emoji.py]"]
  node_resizer["Window resizer<br/>[resizer.py]"]
  node_toggle["Workspace toggles<br/>[toggle.py]"]
  node_shell["Shell control<br/>[shell.py]"]
end

subgraph group_shared["Shared services"]
  node_hypr["Hyprland interface<br/>[hypr.py]"]
  node_paths["User paths and config<br/>[paths.py]"]
  node_notify["Notifications<br/>[notify.py]"]
end

node_user(("CLI user"))
node_desktop(("Desktop environment"))
node_packagehost["Package manager"]

node_user -->|"runs command"| node_parser
node_parser -->|"dispatches"| node_installer
node_parser -->|"dispatches"| node_updater
node_parser -->|"dispatches"| node_schemecommand
node_parser -->|"dispatches"| node_wallpapercommand
node_parser -->|"dispatches"| node_screenshot
node_parser -->|"dispatches"| node_record
node_parser -->|"dispatches"| node_clipboard
node_parser -->|"dispatches"| node_emoji
node_parser -->|"dispatches"| node_resizer
node_parser -->|"dispatches"| node_toggle
node_parser -->|"dispatches"| node_shell
node_installer -->|"reads"| node_manifest
node_installer -->|"fetches from"| node_source
node_installer -->|"deploys with"| node_deployer
node_installer -->|"installs through"| node_packages
node_updater -->|"reads"| node_manifest
node_updater -->|"fetches from"| node_source
node_updater -->|"applies changes"| node_deployer
node_updater -->|"installs through"| node_packages
node_updater -.->|"loads and saves"| node_dotsstate
node_schemecommand -->|"manages"| node_schemes
node_schemecommand -->|"applies themes"| node_theme
node_wallpapercommand -->|"manages"| node_wallpaper
node_wallpaper -->|"updates scheme"| node_schemes
node_wallpaper -->|"applies theme"| node_theme
node_schemes -->|"generates colors"| node_material
node_theme -->|"renders"| node_templates
node_screenshot -->|"queries desktop"| node_hypr
node_record -->|"queries desktop"| node_hypr
node_resizer -->|"controls windows"| node_hypr
node_toggle -->|"dispatches actions"| node_hypr
node_shell -->|"uses config paths"| node_paths
node_emoji -->|"reads data paths"| node_paths
node_wallpaper -->|"queries monitors"| node_hypr
node_wallpaper -->|"uses state paths"| node_paths
node_schemes -->|"persists scheme"| node_paths
node_theme -->|"detects config"| node_hypr
node_packages -->|"installs packages"| node_packagehost
node_screenshot -->|"captures screen"| node_desktop
node_record -->|"records screen"| node_desktop

click node_parser "https://github.com/caelestia-dots/cli/blob/main/src/caelestia/parser.py"
click node_installer "https://github.com/caelestia-dots/cli/blob/main/src/caelestia/subcommands/install.py"
click node_updater "https://github.com/caelestia-dots/cli/blob/main/src/caelestia/subcommands/update.py"
click node_manifest "https://github.com/caelestia-dots/cli/blob/main/src/caelestia/utils/dots/manifest.py"
click node_source "https://github.com/caelestia-dots/cli/blob/main/src/caelestia/utils/dots/source.py"
click node_deployer "https://github.com/caelestia-dots/cli/blob/main/src/caelestia/utils/dots/deployer.py"
click node_packages "https://github.com/caelestia-dots/cli/blob/main/src/caelestia/utils/dots/packages.py"
click node_dotsstate "https://github.com/caelestia-dots/cli/blob/main/src/caelestia/utils/dots/state.py"
click node_schemecommand "https://github.com/caelestia-dots/cli/blob/main/src/caelestia/subcommands/scheme.py"
click node_wallpapercommand "https://github.com/caelestia-dots/cli/blob/main/src/caelestia/subcommands/wallpaper.py"
click node_wallpaper "https://github.com/caelestia-dots/cli/blob/main/src/caelestia/utils/wallpaper.py"
click node_schemes "https://github.com/caelestia-dots/cli/blob/main/src/caelestia/utils/scheme.py"
click node_material "https://github.com/caelestia-dots/cli/blob/main/src/caelestia/utils/material/generator.py"
click node_theme "https://github.com/caelestia-dots/cli/blob/main/src/caelestia/utils/theme.py"
click node_templates "https://github.com/caelestia-dots/cli/tree/main/src/caelestia/data/templates"
click node_screenshot "https://github.com/caelestia-dots/cli/blob/main/src/caelestia/subcommands/screenshot.py"
click node_record "https://github.com/caelestia-dots/cli/blob/main/src/caelestia/subcommands/record.py"
click node_clipboard "https://github.com/caelestia-dots/cli/blob/main/src/caelestia/subcommands/clipboard.py"
click node_emoji "https://github.com/caelestia-dots/cli/blob/main/src/caelestia/subcommands/emoji.py"
click node_resizer "https://github.com/caelestia-dots/cli/blob/main/src/caelestia/subcommands/resizer.py"
click node_toggle "https://github.com/caelestia-dots/cli/blob/main/src/caelestia/subcommands/toggle.py"
click node_shell "https://github.com/caelestia-dots/cli/blob/main/src/caelestia/subcommands/shell.py"
click node_hypr "https://github.com/caelestia-dots/cli/blob/main/src/caelestia/utils/hypr.py"
click node_paths "https://github.com/caelestia-dots/cli/blob/main/src/caelestia/utils/paths.py"
click node_notify "https://github.com/caelestia-dots/cli/blob/main/src/caelestia/utils/notify.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_parser,node_user toneBlue
class node_installer,node_updater,node_manifest,node_source,node_deployer,node_packages,node_dotsstate toneAmber
class node_schemecommand,node_wallpapercommand,node_wallpaper,node_schemes,node_material,node_theme,node_templates toneMint
class node_screenshot,node_record,node_clipboard,node_emoji,node_resizer,node_toggle,node_shell toneRose
class node_hypr,node_paths,node_notify,node_desktop,node_packagehost toneIndigo
```

## Components

### CLI entry

- [Command parser](https://github.com/caelestia-dots/cli/blob/main/src/caelestia/parser.py): `src/caelestia/parser.py`

### Dotfiles management

- [Install dotfiles](https://github.com/caelestia-dots/cli/blob/main/src/caelestia/subcommands/install.py): `src/caelestia/subcommands/install.py`
- [Update dotfiles](https://github.com/caelestia-dots/cli/blob/main/src/caelestia/subcommands/update.py): `src/caelestia/subcommands/update.py`
- [Manifest model](https://github.com/caelestia-dots/cli/blob/main/src/caelestia/utils/dots/manifest.py): `src/caelestia/utils/dots/manifest.py`
- [Dotfiles source](https://github.com/caelestia-dots/cli/blob/main/src/caelestia/utils/dots/source.py): `src/caelestia/utils/dots/source.py`
- [File deployment](https://github.com/caelestia-dots/cli/blob/main/src/caelestia/utils/dots/deployer.py): `src/caelestia/utils/dots/deployer.py`
- [Package install](https://github.com/caelestia-dots/cli/blob/main/src/caelestia/utils/dots/packages.py): `src/caelestia/utils/dots/packages.py`
- [Install state](https://github.com/caelestia-dots/cli/blob/main/src/caelestia/utils/dots/state.py): `src/caelestia/utils/dots/state.py`

### Appearance

- [Scheme commands](https://github.com/caelestia-dots/cli/blob/main/src/caelestia/subcommands/scheme.py): `src/caelestia/subcommands/scheme.py`
- [Wallpaper command](https://github.com/caelestia-dots/cli/blob/main/src/caelestia/subcommands/wallpaper.py): `src/caelestia/subcommands/wallpaper.py`
- [Wallpaper processing](https://github.com/caelestia-dots/cli/blob/main/src/caelestia/utils/wallpaper.py): `src/caelestia/utils/wallpaper.py`
- [Scheme state](https://github.com/caelestia-dots/cli/blob/main/src/caelestia/utils/scheme.py): `src/caelestia/utils/scheme.py`
- [Material generation](https://github.com/caelestia-dots/cli/blob/main/src/caelestia/utils/material/generator.py): `src/caelestia/utils/material/generator.py`
- [Application theming](https://github.com/caelestia-dots/cli/blob/main/src/caelestia/utils/theme.py): `src/caelestia/utils/theme.py`
- [Theme templates](https://github.com/caelestia-dots/cli/tree/main/src/caelestia/data/templates): `src/caelestia/data/templates`

### Desktop utilities

- [Screenshot](https://github.com/caelestia-dots/cli/blob/main/src/caelestia/subcommands/screenshot.py): `src/caelestia/subcommands/screenshot.py`
- [Screen recording](https://github.com/caelestia-dots/cli/blob/main/src/caelestia/subcommands/record.py): `src/caelestia/subcommands/record.py`
- [Clipboard history](https://github.com/caelestia-dots/cli/blob/main/src/caelestia/subcommands/clipboard.py): `src/caelestia/subcommands/clipboard.py`
- [Emoji utilities](https://github.com/caelestia-dots/cli/blob/main/src/caelestia/subcommands/emoji.py): `src/caelestia/subcommands/emoji.py`
- [Window resizer](https://github.com/caelestia-dots/cli/blob/main/src/caelestia/subcommands/resizer.py): `src/caelestia/subcommands/resizer.py`
- [Workspace toggles](https://github.com/caelestia-dots/cli/blob/main/src/caelestia/subcommands/toggle.py): `src/caelestia/subcommands/toggle.py`
- [Shell control](https://github.com/caelestia-dots/cli/blob/main/src/caelestia/subcommands/shell.py): `src/caelestia/subcommands/shell.py`

### Shared services

- [Hyprland interface](https://github.com/caelestia-dots/cli/blob/main/src/caelestia/utils/hypr.py): `src/caelestia/utils/hypr.py`
- [User paths and config](https://github.com/caelestia-dots/cli/blob/main/src/caelestia/utils/paths.py): `src/caelestia/utils/paths.py`
- [Notifications](https://github.com/caelestia-dots/cli/blob/main/src/caelestia/utils/notify.py): `src/caelestia/utils/notify.py`

### Other components

- **CLI user**
- **Desktop environment**
- **Package manager**

## Connections

- CLI user → Command parser: runs command (evidence: `README.md`)
- Command parser → Install dotfiles: dispatches (evidence: `src/caelestia/parser.py`)
- Command parser → Update dotfiles: dispatches (evidence: `src/caelestia/parser.py`)
- Command parser → Scheme commands: dispatches (evidence: `src/caelestia/parser.py`)
- Command parser → Wallpaper command: dispatches (evidence: `src/caelestia/parser.py`)
- Command parser → Screenshot: dispatches (evidence: `README.md`)
- Command parser → Screen recording: dispatches (evidence: `README.md`)
- Command parser → Clipboard history: dispatches (evidence: `README.md`)
- Command parser → Emoji utilities: dispatches (evidence: `README.md`)
- Command parser → Window resizer: dispatches (evidence: `src/caelestia/parser.py`)
- Command parser → Workspace toggles: dispatches (evidence: `README.md`)
- Command parser → Shell control: dispatches (evidence: `README.md`)
- Install dotfiles → Manifest model: reads (evidence: `src/caelestia/subcommands/install.py`)
- Install dotfiles → Dotfiles source: fetches from (evidence: `src/caelestia/subcommands/install.py`)
- Install dotfiles → File deployment: deploys with (evidence: `src/caelestia/subcommands/install.py`)
- Install dotfiles → Package install: installs through (evidence: `src/caelestia/subcommands/install.py`)
- Update dotfiles → Manifest model: reads (evidence: `src/caelestia/subcommands/update.py`)
- Update dotfiles → Dotfiles source: fetches from (evidence: `src/caelestia/subcommands/update.py`)
- Update dotfiles → File deployment: applies changes (evidence: `src/caelestia/subcommands/update.py`)
- Update dotfiles → Package install: installs through (evidence: `src/caelestia/subcommands/update.py`)
- Update dotfiles → Install state: loads and saves (evidence: `src/caelestia/subcommands/update.py`)
- Scheme commands → Scheme state: manages (evidence: `src/caelestia/subcommands/scheme.py`)
- Scheme commands → Application theming: applies themes (evidence: `src/caelestia/subcommands/scheme.py`)
- Wallpaper command → Wallpaper processing: manages (evidence: `src/caelestia/subcommands/wallpaper.py`)
- Wallpaper processing → Scheme state: updates scheme (evidence: `src/caelestia/utils/wallpaper.py`)
- Wallpaper processing → Application theming: applies theme (evidence: `src/caelestia/utils/wallpaper.py`)
- Scheme state → Material generation: generates colors (evidence: `src/caelestia/utils/material/__init__.py`)
- Application theming → Theme templates: renders (evidence: `README.md`)
- Screenshot → Hyprland interface: queries desktop (evidence: `src/caelestia/subcommands/screenshot.py`)
- Screen recording → Hyprland interface: queries desktop (evidence: `src/caelestia/subcommands/record.py`)
- Window resizer → Hyprland interface: controls windows (evidence: `src/caelestia/subcommands/resizer.py`)
- Workspace toggles → Hyprland interface: dispatches actions (evidence: `src/caelestia/subcommands/toggle.py`)
- Shell control → User paths and config: uses config paths (evidence: `src/caelestia/subcommands/shell.py`)
- Emoji utilities → User paths and config: reads data paths (evidence: `src/caelestia/subcommands/emoji.py`)
- Wallpaper processing → Hyprland interface: queries monitors (evidence: `src/caelestia/utils/wallpaper.py`)
- Wallpaper processing → User paths and config: uses state paths (evidence: `src/caelestia/utils/wallpaper.py`)
- Scheme state → User paths and config: persists scheme (evidence: `src/caelestia/utils/scheme.py`)
- Application theming → Hyprland interface: detects config (evidence: `src/caelestia/utils/theme.py`)
- Package install → Package manager: installs packages (evidence: `src/caelestia/utils/dots/packages.py`)
- Screenshot → Desktop environment: captures screen (evidence: `README.md`)
- Screen recording → Desktop environment: records screen (evidence: `README.md`)
