# lucifer516-sudoer/awww-picker architecture

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

- Interactive diagram: https://gitdiagram.com/lucifer516-sudoer/awww-picker
- Repository: https://github.com/lucifer516-sudoer/awww-picker

## Overview

wp_pikr is a small terminal wallpaper picker for Hyprland/Caelestia. Its workflow loads image files from a configured directory, presents searchable names in a Textual interface, and applies the selected file through the Caelestia command. The runtime is implemented in one source file, so several components share its path. The README documents the directory configuration requirement; no separate storage or domain modules are present.

Main entry points: [`src/wp_pikr/main.py`](https://github.com/lucifer516-sudoer/awww-picker/blob/main/src/wp_pikr/main.py) (Picker app)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Picker interface"]
  node_app_entry["App entry<br/>[main.py]"]
  node_picker_app["Picker app<br/>[main.py]"]
  node_search_list["Searchable list<br/>[main.py]"]
  node_wallpaper_item["Wallpaper item<br/>[main.py]"]
  node_status_log["Status log<br/>[main.py]"]
end

subgraph group_wallpaper["Wallpaper operations"]
  node_wallpaper_loader["Wallpaper loader<br/>[main.py]"]
  node_name_cleaner["Name formatter<br/>[main.py]"]
  node_wallpaper_apply["Wallpaper apply<br/>[main.py]"]
end

node_user(("User"))
node_wallpaper_directory["Wallpaper directory"]
node_caelestia["Caelestia Shell"]

node_user -->|"starts"| node_app_entry
node_app_entry -->|"runs"| node_picker_app
node_picker_app -->|"loads files"| node_wallpaper_loader
node_wallpaper_loader -->|"reads images"| node_wallpaper_directory
node_picker_app -->|"renders"| node_search_list
node_search_list -->|"formats names"| node_name_cleaner
node_search_list -->|"creates items"| node_wallpaper_item
node_user -->|"filters or selects"| node_search_list
node_picker_app -->|"applies selection"| node_wallpaper_apply
node_wallpaper_apply -->|"sets wallpaper"| node_caelestia
node_picker_app -->|"writes status"| node_status_log

click node_app_entry "https://github.com/lucifer516-sudoer/awww-picker/blob/main/src/wp_pikr/main.py"
click node_picker_app "https://github.com/lucifer516-sudoer/awww-picker/blob/main/src/wp_pikr/main.py"
click node_wallpaper_loader "https://github.com/lucifer516-sudoer/awww-picker/blob/main/src/wp_pikr/main.py"
click node_search_list "https://github.com/lucifer516-sudoer/awww-picker/blob/main/src/wp_pikr/main.py"
click node_name_cleaner "https://github.com/lucifer516-sudoer/awww-picker/blob/main/src/wp_pikr/main.py"
click node_wallpaper_item "https://github.com/lucifer516-sudoer/awww-picker/blob/main/src/wp_pikr/main.py"
click node_wallpaper_apply "https://github.com/lucifer516-sudoer/awww-picker/blob/main/src/wp_pikr/main.py"
click node_status_log "https://github.com/lucifer516-sudoer/awww-picker/blob/main/src/wp_pikr/main.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_app_entry,node_picker_app,node_search_list,node_wallpaper_item,node_status_log,node_user toneBlue
class node_wallpaper_loader,node_name_cleaner,node_wallpaper_apply toneAmber
class node_wallpaper_directory,node_caelestia toneIndigo
```

## Components

### Picker interface

- [App entry](https://github.com/lucifer516-sudoer/awww-picker/blob/main/src/wp_pikr/main.py): `src/wp_pikr/main.py`
- [Picker app](https://github.com/lucifer516-sudoer/awww-picker/blob/main/src/wp_pikr/main.py): `src/wp_pikr/main.py`
- [Searchable list](https://github.com/lucifer516-sudoer/awww-picker/blob/main/src/wp_pikr/main.py): `src/wp_pikr/main.py`
- [Wallpaper item](https://github.com/lucifer516-sudoer/awww-picker/blob/main/src/wp_pikr/main.py): `src/wp_pikr/main.py`
- [Status log](https://github.com/lucifer516-sudoer/awww-picker/blob/main/src/wp_pikr/main.py): `src/wp_pikr/main.py`

### Wallpaper operations

- [Wallpaper loader](https://github.com/lucifer516-sudoer/awww-picker/blob/main/src/wp_pikr/main.py): `src/wp_pikr/main.py`
- [Name formatter](https://github.com/lucifer516-sudoer/awww-picker/blob/main/src/wp_pikr/main.py): `src/wp_pikr/main.py`
- [Wallpaper apply](https://github.com/lucifer516-sudoer/awww-picker/blob/main/src/wp_pikr/main.py): `src/wp_pikr/main.py`

### Other components

- **User**
- **Wallpaper directory**
- **Caelestia Shell**

## Connections

- User → App entry: starts (evidence: `README.md`)
- App entry → Picker app: runs (evidence: `src/wp_pikr/main.py`)
- Picker app → Wallpaper loader: loads files (evidence: `src/wp_pikr/main.py`)
- Wallpaper loader → Wallpaper directory: reads images (evidence: `src/wp_pikr/main.py`)
- Picker app → Searchable list: renders (evidence: `src/wp_pikr/main.py`)
- Searchable list → Name formatter: formats names (evidence: `src/wp_pikr/main.py`)
- Searchable list → Wallpaper item: creates items (evidence: `src/wp_pikr/main.py`)
- User → Searchable list: filters or selects (evidence: `src/wp_pikr/main.py`)
- Picker app → Wallpaper apply: applies selection (evidence: `src/wp_pikr/main.py`)
- Wallpaper apply → Caelestia Shell: sets wallpaper (evidence: `src/wp_pikr/main.py`)
- Picker app → Status log: writes status (evidence: `src/wp_pikr/main.py`)
