# itsabigigloo/caelestia-sddm architecture

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

- Interactive diagram: https://gitdiagram.com/itsabigigloo/caelestia-sddm
- Repository: https://github.com/itsabigigloo/caelestia-sddm

## Overview

#### Purpose and Runtime

Caelestia SDDM is a Qt 6/QML theme repository for the SDDM display manager, providing three alternative login interfaces integrated with Caelestia Shell. It is not a standalone application or server: SDDM discovers a selected theme through its metadata and loads its QML entry point. Required runtime capabilities include Qt declarative, Qt 5 compatibility, SVG support, installed fonts/icons, and optionally Caelestia Shell for synchronized wallpaper and dynamic colors.

#### Theme Packages and Entry Points

Each theme is a self-contained SDDM package with metadata, configurable theme settings, and a root QML scene:
- Locklike: `themes/locklike/Main.qml`, `themes/locklike/metadata.desktop`, `themes/locklike/theme.conf`
- Minimalist: `themes/minimalist/Main.qml`, `themes/minimalist/metadata.desktop`, `themes/minimalist/theme.conf`
- MinimalistV2: `themes/minimalistV2/Main.qml`, `themes/minimalistV2/metadata.desktop`, `themes/minimalistV2/theme.conf`

`theme.conf.template` files alongside each package provide templatable configuration, likely used by installation/synchronization workflows rather than the QML runtime directly.

#### Login Interaction Layer

The root scenes compose user-facing authentication UI around SDDM-provided login/session/power interfaces. Password entry, account presentation, session choice, and shutdown/restart controls are separated into reusable QML components:
- `themes/locklike/components/PasswordInput.qml`
- `themes/locklike/components/SessionPicker.qml`
- `themes/minimalistV2/components/LoginCard.qml`
- `themes/minimalist/components/PowerButton.qml`

The important boundary is QML-to-SDDM: visual components collect user input and invoke display-manager authentication/session actions; credential validation and session startup remain SDDM responsibilities.

#### Shared Visual Composition

Each theme owns its components rather than importing a repository-wide design system. Locklike centers its composition on clock, greeting, avatar, quotes, system buttons, and Caelestia-specific widgets:
- `themes/locklike/components/MainClock.qml`
- `themes/locklike/components/RandomQuote.qml`
- `themes/locklike/widgets/CaelestiaFetch.qml`

Minimalist and MinimalistV2 use login-card-oriented compositions, with V2 adding blur and interaction animation:
- `themes/minimalist/components/ToastMessage.qml`
- `themes/minimalistV2/components/BlurWrapper.qml`
- `themes/minimalistV2/components/TapBounce.qml`

#### Dynamic Appearance and Caelestia Boundary

The repository’s intended integration boundary is Caelestia Shell: dynamic wallpaper-driven colors and wallpaper synchronization depend on that external desktop ecosystem. Themes should still render elsewhere, but lose those dynamic inputs. Minimalist variants expose a QML singleton for theme-wide state and styling:
- `themes/minimalist/singletons/Theme.qml`
- `themes/minimalistV2/singletons/Theme.qml`
- `themes/minimalistV2/singletons/qmldir`

Locklike additionally contains layer-state and blur abstractions for coordinated visual state:
- `themes/locklike/components/LayerState.qml`
- `themes/locklike/components/BlurWrapper.qml`

#### Custom Shape Rendering

Locklike and MinimalistV2 embed a Material-style shape/morph rendering stack. `ShapeCanvas.qml` is the QML rendering boundary; JavaScript modules implement geometry, path features, polygon operations, and morphing:
- `themes/locklike/components/shapes/ShapeCanvas.qml`
- `themes/locklike/components/shapes/material-shapes.js`
- `themes/minimalistV2/components/shapes/shapes/morph.js`

This duplicated subsystem lets each package render animated/custom shapes independently, avoiding cross-theme runtime dependencies.

#### Delivery and Operations

Shell scripts drive installation, removal, theme/config synchronization, permission/avatar fixes, and monitor-related setup:
- `scripts/install.sh`
- `scripts/sync.sh`
- `scripts/uninstall.sh`

Arch packaging is maintained separately through `aur/PKGBUILD` and `aur/caelestia-sddm.install`. The practical deployment flow is package or script installation into SDDM’s theme location, then SDDM configuration selects one theme package; Caelestia synchronization can update its dynamic assets/configuration afterward.

Main entry points: [`themes/locklike/Main.qml`](https://github.com/itsabigigloo/caelestia-sddm/blob/main/themes/locklike/Main.qml) (Locklike scene), [`themes/minimalistV2/Main.qml`](https://github.com/itsabigigloo/caelestia-sddm/blob/main/themes/minimalistV2/Main.qml) (MinimalistV2 scene), [`themes/minimalist/Main.qml`](https://github.com/itsabigigloo/caelestia-sddm/blob/main/themes/minimalist/Main.qml) (Minimalist scene), [`scripts/install.sh`](https://github.com/itsabigigloo/caelestia-sddm/blob/main/scripts/install.sh) (Install and sync scripts)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_themes["Theme packages"]
  node_locklike["Locklike scene<br/>QML theme entry<br/>[Main.qml]"]
  node_locklike_metadata["Locklike package metadata<br/>SDDM metadata<br/>[metadata.desktop]"]
  node_locklike_login["Locklike login controls<br/>QML components<br/>[PasswordInput.qml]"]
  node_locklike_visuals["Locklike visual widgets<br/>QML components<br/>[MainClock.qml]"]
  node_locklike_layers["Locklike layer effects<br/>QML state/effects<br/>[LayerState.qml]"]
  node_locklike_shapes["Locklike shape renderer<br/>QML and JavaScript<br/>[ShapeCanvas.qml]"]
  node_minimalist["Minimalist scene<br/>QML theme entry<br/>[Main.qml]"]
  node_minimalist_theme["Minimalist theme state<br/>QML singleton<br/>[Theme.qml]"]
  node_minimalist_controls["Minimalist controls<br/>QML components<br/>[PowerButton.qml]"]
  node_minimalistv2["MinimalistV2 scene<br/>QML theme entry<br/>[Main.qml]"]
  node_minimalistv2_theme["MinimalistV2 theme state<br/>QML singleton"]
  node_minimalistv2_login["MinimalistV2 login card<br/>QML component<br/>[LoginCard.qml]"]
  node_minimalistv2_effects["MinimalistV2 effects<br/>QML components<br/>[BlurWrapper.qml]"]
  node_minimalistv2_shapes["MinimalistV2 shape morphing<br/>JavaScript renderer<br/>[morph.js]"]
end

subgraph group_runtime["Runtime integrations"]
  node_sddm{{"SDDM display manager"}}
  node_caelestia{{"Caelestia Shell<br/>desktop integration"}}
end

subgraph group_delivery["Delivery and operations"]
  node_scripts["Install and sync scripts<br/>shell operations<br/>[install.sh]"]
  node_arch_package["Arch package recipe<br/>Arch packaging"]
end

node_sddm -->|"discovers"| node_locklike_metadata
node_sddm -->|"loads selected entry"| node_locklike
node_sddm -->|"loads selected entry"| node_minimalist
node_sddm -->|"loads selected entry"| node_minimalistv2
node_locklike -->|"composes"| node_locklike_login
node_locklike -->|"composes"| node_locklike_visuals
node_locklike -->|"uses"| node_locklike_layers
node_locklike -->|"renders through"| node_locklike_shapes
node_locklike_login -->|"invokes login and session actions"| node_sddm
node_minimalist -->|"uses"| node_minimalist_theme
node_minimalist -->|"composes"| node_minimalist_controls
node_minimalist_controls -->|"invokes power actions"| node_sddm
node_minimalistv2 -->|"imports"| node_minimalistv2_theme
node_minimalistv2 -->|"composes"| node_minimalistv2_login
node_minimalistv2 -->|"uses"| node_minimalistv2_effects
node_minimalistv2 -->|"renders through"| node_minimalistv2_shapes
node_minimalistv2_login -->|"invokes authentication"| node_sddm
node_caelestia -.->|"supplies dynamic appearance"| node_locklike
node_caelestia -.->|"supplies dynamic appearance"| node_minimalist_theme
node_caelestia -.->|"supplies dynamic appearance"| node_minimalistv2_theme
node_scripts -->|"installs themes for"| node_sddm
node_scripts -.->|"synchronizes assets with"| node_caelestia
node_arch_package -.->|"deploys alongside"| node_scripts

click node_locklike "https://github.com/itsabigigloo/caelestia-sddm/blob/main/themes/locklike/Main.qml"
click node_locklike_metadata "https://github.com/itsabigigloo/caelestia-sddm/blob/main/themes/locklike/metadata.desktop"
click node_locklike_login "https://github.com/itsabigigloo/caelestia-sddm/blob/main/themes/locklike/components/PasswordInput.qml"
click node_locklike_visuals "https://github.com/itsabigigloo/caelestia-sddm/blob/main/themes/locklike/components/MainClock.qml"
click node_locklike_layers "https://github.com/itsabigigloo/caelestia-sddm/blob/main/themes/locklike/components/LayerState.qml"
click node_locklike_shapes "https://github.com/itsabigigloo/caelestia-sddm/blob/main/themes/locklike/components/shapes/ShapeCanvas.qml"
click node_minimalist "https://github.com/itsabigigloo/caelestia-sddm/blob/main/themes/minimalist/Main.qml"
click node_minimalist_theme "https://github.com/itsabigigloo/caelestia-sddm/blob/main/themes/minimalist/singletons/Theme.qml"
click node_minimalist_controls "https://github.com/itsabigigloo/caelestia-sddm/blob/main/themes/minimalist/components/PowerButton.qml"
click node_minimalistv2 "https://github.com/itsabigigloo/caelestia-sddm/blob/main/themes/minimalistV2/Main.qml"
click node_minimalistv2_theme "https://github.com/itsabigigloo/caelestia-sddm/tree/main/themes/minimalistV2/singletons/qmldir"
click node_minimalistv2_login "https://github.com/itsabigigloo/caelestia-sddm/blob/main/themes/minimalistV2/components/LoginCard.qml"
click node_minimalistv2_effects "https://github.com/itsabigigloo/caelestia-sddm/blob/main/themes/minimalistV2/components/BlurWrapper.qml"
click node_minimalistv2_shapes "https://github.com/itsabigigloo/caelestia-sddm/blob/main/themes/minimalistV2/components/shapes/shapes/morph.js"
click node_scripts "https://github.com/itsabigigloo/caelestia-sddm/blob/main/scripts/install.sh"
click node_arch_package "https://github.com/itsabigigloo/caelestia-sddm/tree/main/aur/PKGBUILD"

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_locklike,node_locklike_metadata,node_locklike_login,node_locklike_visuals,node_locklike_layers,node_locklike_shapes,node_minimalist,node_minimalist_theme,node_minimalist_controls,node_minimalistv2,node_minimalistv2_theme,node_minimalistv2_login,node_minimalistv2_effects,node_minimalistv2_shapes toneBlue
class node_sddm,node_caelestia toneAmber
class node_scripts,node_arch_package toneMint
```

## Components

### Theme packages

Independent SDDM theme implementations.

- [Locklike scene](https://github.com/itsabigigloo/caelestia-sddm/blob/main/themes/locklike/Main.qml): QML theme entry · Lock-screen-inspired login interface. · `themes/locklike/Main.qml`
- [Locklike package metadata](https://github.com/itsabigigloo/caelestia-sddm/blob/main/themes/locklike/metadata.desktop): SDDM metadata · `themes/locklike/metadata.desktop`
- [Locklike login controls](https://github.com/itsabigigloo/caelestia-sddm/blob/main/themes/locklike/components/PasswordInput.qml): QML components · Password and session-selection UI. · `themes/locklike/components/PasswordInput.qml`
- [Locklike visual widgets](https://github.com/itsabigigloo/caelestia-sddm/blob/main/themes/locklike/components/MainClock.qml): QML components · Clock, quotes, avatar, and Caelestia-facing widgets. · `themes/locklike/components/MainClock.qml`
- [Locklike layer effects](https://github.com/itsabigigloo/caelestia-sddm/blob/main/themes/locklike/components/LayerState.qml): QML state/effects · Coordinates layer state and blur. · `themes/locklike/components/LayerState.qml`
- [Locklike shape renderer](https://github.com/itsabigigloo/caelestia-sddm/blob/main/themes/locklike/components/shapes/ShapeCanvas.qml): QML and JavaScript · Canvas boundary backed by Material shape geometry. · `themes/locklike/components/shapes/ShapeCanvas.qml`
- [Minimalist scene](https://github.com/itsabigigloo/caelestia-sddm/blob/main/themes/minimalist/Main.qml): QML theme entry · Login-card-oriented interface. · `themes/minimalist/Main.qml`
- [Minimalist theme state](https://github.com/itsabigigloo/caelestia-sddm/blob/main/themes/minimalist/singletons/Theme.qml): QML singleton · Theme-wide styling and dynamic appearance state. · `themes/minimalist/singletons/Theme.qml`
- [Minimalist controls](https://github.com/itsabigigloo/caelestia-sddm/blob/main/themes/minimalist/components/PowerButton.qml): QML components · Includes power actions and toast feedback. · `themes/minimalist/components/PowerButton.qml`
- [MinimalistV2 scene](https://github.com/itsabigigloo/caelestia-sddm/blob/main/themes/minimalistV2/Main.qml): QML theme entry · Animated login-card interface. · `themes/minimalistV2/Main.qml`
- [MinimalistV2 theme state](https://github.com/itsabigigloo/caelestia-sddm/tree/main/themes/minimalistV2/singletons/qmldir): QML singleton · Registered singleton for shared styling state. · `themes/minimalistV2/singletons/qmldir`
- [MinimalistV2 login card](https://github.com/itsabigigloo/caelestia-sddm/blob/main/themes/minimalistV2/components/LoginCard.qml): QML component · Collects account and password input. · `themes/minimalistV2/components/LoginCard.qml`
- [MinimalistV2 effects](https://github.com/itsabigigloo/caelestia-sddm/blob/main/themes/minimalistV2/components/BlurWrapper.qml): QML components · Blur and tap-bounce interaction effects. · `themes/minimalistV2/components/BlurWrapper.qml`
- [MinimalistV2 shape morphing](https://github.com/itsabigigloo/caelestia-sddm/blob/main/themes/minimalistV2/components/shapes/shapes/morph.js): JavaScript renderer · Independent custom-shape morph subsystem. · `themes/minimalistV2/components/shapes/shapes/morph.js`

### Runtime integrations

External systems that load or enrich themes.

- **SDDM display manager**: display manager · Discovers the selected package and owns authentication and session startup.
- **Caelestia Shell**: desktop integration · Optionally supplies synchronized wallpaper and dynamic colors.

### Delivery and operations

Installation and synchronization tooling.

- [Install and sync scripts](https://github.com/itsabigigloo/caelestia-sddm/blob/main/scripts/install.sh): shell operations · Installs, removes, and synchronizes themes and assets. · `scripts/install.sh`
- [Arch package recipe](https://github.com/itsabigigloo/caelestia-sddm/tree/main/aur/PKGBUILD): Arch packaging · Packages the themes for Arch-based installation. · `aur/PKGBUILD`

## Connections

- SDDM display manager → Locklike package metadata: discovers
- SDDM display manager → Locklike scene: loads selected entry
- SDDM display manager → Minimalist scene: loads selected entry
- SDDM display manager → MinimalistV2 scene: loads selected entry
- Locklike scene → Locklike login controls: composes
- Locklike scene → Locklike visual widgets: composes
- Locklike scene → Locklike layer effects: uses
- Locklike scene → Locklike shape renderer: renders through
- Locklike login controls → SDDM display manager: invokes login and session actions
- Minimalist scene → Minimalist theme state: uses
- Minimalist scene → Minimalist controls: composes
- Minimalist controls → SDDM display manager: invokes power actions
- MinimalistV2 scene → MinimalistV2 theme state: imports
- MinimalistV2 scene → MinimalistV2 login card: composes
- MinimalistV2 scene → MinimalistV2 effects: uses
- MinimalistV2 scene → MinimalistV2 shape morphing: renders through
- MinimalistV2 login card → SDDM display manager: invokes authentication
- Caelestia Shell → Locklike scene: supplies dynamic appearance
- Caelestia Shell → Minimalist theme state: supplies dynamic appearance
- Caelestia Shell → MinimalistV2 theme state: supplies dynamic appearance
- Install and sync scripts → SDDM display manager: installs themes for
- Install and sync scripts → Caelestia Shell: synchronizes assets with
- Arch package recipe → Install and sync scripts: deploys alongside
