# ajstars1/sotto architecture

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

- Interactive diagram: https://gitdiagram.com/ajstars1/sotto
- Repository: https://github.com/ajstars1/sotto

## Overview

Sotto is a Hyprland desktop experience centered on an interactive terminal wallpaper. The main flow collects local project activity into state, renders it as a live wallpaper, and lets users open projects or invoke the prompt; the prompt handles local desktop actions and can optionally ask Claude. Separate capabilities provide an embedded shell, app dock/window controls, a login screen, and boot splash. The sampled excerpts support the main rendering, collection, terminal and assistant links; unsampled dock behavior and other desktop integrations are represented only where the README documents them.

Main entry points: [`sotto/wall.py`](https://github.com/ajstars1/sotto/blob/main/sotto/wall.py) (Live wallpaper), [`sotto/__main__.py`](https://github.com/ajstars1/sotto/blob/main/sotto/__main__.py) (Sotto commands), [`sotto/assistant.py`](https://github.com/ajstars1/sotto/blob/main/sotto/assistant.py) (Desktop assistant), [`sotto/collect.py`](https://github.com/ajstars1/sotto/blob/main/sotto/collect.py) (Activity collector)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_wallpaper["Live Wallpaper"]
  node_collector["Activity collector<br/>[collect.py]"]
  node_state[("Wallpaper state")]
  node_wall["Live wallpaper<br/>[wall.py]"]
  node_scene["Clock and projects<br/>[scene.py]"]
  node_grid["Character grid<br/>[grid.py]"]
  node_pixelart["Pixel lettering<br/>[art.py]"]
end

subgraph group_assistant["Prompt and Shell"]
  node_terminal["Embedded shell<br/>[term.py]"]
  node_prompt["Desktop assistant<br/>[assistant.py]"]
  node_localactions["Local actions<br/>[assistant.py]"]
  node_claude{{"Claude Haiku"}}
end

subgraph group_desktop["Desktop Controls"]
  node_dock["App dock and launcher<br/>[dock.py]"]
  node_hyprscripts["Window and system menus"]
end

subgraph group_session["Login and Boot"]
  node_greeter["Login screen<br/>[greeter.py]"]
  node_bootsplash["Boot splash<br/>[bootsplash.py]"]
end

node_user(("Desktop user"))
node_entry["Sotto commands<br/>[__main__.py]"]

node_user -->|"runs commands"| node_entry
node_entry -->|"collects activity"| node_collector
node_collector -.->|"writes JSON"| node_state
node_wall -->|"refreshes data"| node_collector
node_wall -.->|"reads state"| node_state
node_wall -.->|"builds scene"| node_scene
node_scene -->|"draws cells"| node_grid
node_scene -->|"uses font"| node_pixelart
node_wall -->|"renders shell"| node_terminal
node_user -->|"interacts"| node_wall
node_user -->|"asks prompt"| node_prompt
node_entry -->|"handles query"| node_prompt
node_prompt -->|"dispatches action"| node_localactions
node_prompt -.->|"asks questions"| node_claude
node_localactions -->|"sends commands"| node_wall
node_user -->|"opens apps"| node_dock
node_user -->|"controls desktop"| node_hyprscripts
node_user -->|"authenticates"| node_greeter
node_greeter -.->|"hands off session"| node_wall
node_entry -->|"renders splash"| node_bootsplash
node_bootsplash -->|"uses lettering"| node_pixelart
node_bootsplash -->|"reads config"| node_collector

click node_entry "https://github.com/ajstars1/sotto/blob/main/sotto/__main__.py"
click node_collector "https://github.com/ajstars1/sotto/blob/main/sotto/collect.py"
click node_wall "https://github.com/ajstars1/sotto/blob/main/sotto/wall.py"
click node_scene "https://github.com/ajstars1/sotto/blob/main/sotto/scene.py"
click node_grid "https://github.com/ajstars1/sotto/blob/main/sotto/grid.py"
click node_pixelart "https://github.com/ajstars1/sotto/blob/main/sotto/art.py"
click node_terminal "https://github.com/ajstars1/sotto/blob/main/sotto/term.py"
click node_prompt "https://github.com/ajstars1/sotto/blob/main/sotto/assistant.py"
click node_localactions "https://github.com/ajstars1/sotto/blob/main/sotto/assistant.py"
click node_dock "https://github.com/ajstars1/sotto/blob/main/sotto/dock.py"
click node_hyprscripts "https://github.com/ajstars1/sotto/tree/main/dotfiles/hypr/scripts"
click node_greeter "https://github.com/ajstars1/sotto/blob/main/sotto/greeter.py"
click node_bootsplash "https://github.com/ajstars1/sotto/blob/main/sotto/bootsplash.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_collector,node_state,node_wall,node_scene,node_grid,node_pixelart,node_user toneBlue
class node_terminal,node_prompt,node_localactions,node_claude toneAmber
class node_dock,node_hyprscripts toneMint
class node_greeter,node_bootsplash toneRose
class node_entry toneTeal
```

## Components

### Live Wallpaper

- [Activity collector](https://github.com/ajstars1/sotto/blob/main/sotto/collect.py): `sotto/collect.py`
- **Wallpaper state**
- [Live wallpaper](https://github.com/ajstars1/sotto/blob/main/sotto/wall.py): `sotto/wall.py`
- [Clock and projects](https://github.com/ajstars1/sotto/blob/main/sotto/scene.py): `sotto/scene.py`
- [Character grid](https://github.com/ajstars1/sotto/blob/main/sotto/grid.py): `sotto/grid.py`
- [Pixel lettering](https://github.com/ajstars1/sotto/blob/main/sotto/art.py): `sotto/art.py`

### Prompt and Shell

- [Embedded shell](https://github.com/ajstars1/sotto/blob/main/sotto/term.py): `sotto/term.py`
- [Desktop assistant](https://github.com/ajstars1/sotto/blob/main/sotto/assistant.py): `sotto/assistant.py`
- [Local actions](https://github.com/ajstars1/sotto/blob/main/sotto/assistant.py): `sotto/assistant.py`
- **Claude Haiku**

### Desktop Controls

- [App dock and launcher](https://github.com/ajstars1/sotto/blob/main/sotto/dock.py): `sotto/dock.py`
- [Window and system menus](https://github.com/ajstars1/sotto/tree/main/dotfiles/hypr/scripts): `dotfiles/hypr/scripts`

### Login and Boot

- [Login screen](https://github.com/ajstars1/sotto/blob/main/sotto/greeter.py): `sotto/greeter.py`
- [Boot splash](https://github.com/ajstars1/sotto/blob/main/sotto/bootsplash.py): `sotto/bootsplash.py`

### Other components

- **Desktop user**
- [Sotto commands](https://github.com/ajstars1/sotto/blob/main/sotto/__main__.py): `sotto/__main__.py`

## Connections

- Desktop user → Sotto commands: runs commands (evidence: `sotto/__main__.py`)
- Sotto commands → Activity collector: collects activity (evidence: `sotto/__main__.py`)
- Activity collector → Wallpaper state: writes JSON
- Live wallpaper → Activity collector: refreshes data (evidence: `sotto/wall.py`)
- Live wallpaper → Wallpaper state: reads state
- Live wallpaper → Clock and projects: builds scene (evidence: `sotto/wall.py`)
- Clock and projects → Character grid: draws cells (evidence: `sotto/scene.py`)
- Clock and projects → Pixel lettering: uses font (evidence: `sotto/scene.py`)
- Live wallpaper → Embedded shell: renders shell (evidence: `sotto/wall.py`)
- Desktop user → Live wallpaper: interacts (evidence: `sotto/wall.py`)
- Desktop user → Desktop assistant: asks prompt (evidence: `sotto/assistant.py`)
- Sotto commands → Desktop assistant: handles query (evidence: `sotto/__main__.py`)
- Desktop assistant → Local actions: dispatches action (evidence: `sotto/assistant.py`)
- Desktop assistant → Claude Haiku: asks questions (evidence: `README.md`)
- Local actions → Live wallpaper: sends commands (evidence: `sotto/assistant.py`)
- Desktop user → App dock and launcher: opens apps (evidence: `README.md`)
- Desktop user → Window and system menus: controls desktop (evidence: `README.md`)
- Desktop user → Login screen: authenticates (evidence: `sotto/greeter.py`)
- Login screen → Live wallpaper: hands off session (evidence: `sotto/greeter.py`)
- Sotto commands → Boot splash: renders splash (evidence: `sotto/__main__.py`)
- Boot splash → Pixel lettering: uses lettering (evidence: `sotto/bootsplash.py`)
- Boot splash → Activity collector: reads config (evidence: `sotto/bootsplash.py`)
