# ahmeddkhatib/dotfiles architecture

> Architecture diagram of the GitHub repository ahmeddkhatib/dotfiles, 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/ahmeddkhatib/dotfiles
- Repository: https://github.com/ahmeddkhatib/dotfiles

## Overview

Anubis is a chezmoi-managed Arch/Hyprland desktop configuration with small scripts for interactive desktop workflows. Users invoke keybindings and pickers; the wallpaper workflow derives and applies a shared palette, while AI launch and crash diagnosis are separate paths. Other documented capabilities include menus, game launching, power-aware controls, and session configuration. The README supports the high-level workflow edges; source excerpts cover only game-library readers and usage ranking, so their callers and connections to the picker are not shown.

Main entry points: [`private_dot_config/matugen/templates`](https://github.com/ahmeddkhatib/dotfiles/tree/main/private_dot_config/matugen/templates) (Palette templates), [`dot_local/bin/executable_wall-pick`](https://github.com/ahmeddkhatib/dotfiles/blob/main/dot_local/bin/executable_wall-pick) (Wallpaper picker), [`private_dot_config/hypr`](https://github.com/ahmeddkhatib/dotfiles/tree/main/private_dot_config/hypr) (Hyprland config), [`dot_local/bin/executable_theme-set`](https://github.com/ahmeddkhatib/dotfiles/blob/main/dot_local/bin/executable_theme-set) (Theme setter)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_desktop["Desktop session"]
  node_hypr["Hyprland config"]
  node_bar["Waybar"]
  node_notifications["Mako notifications"]
  node_session["Session services"]
end

subgraph group_theme["Wallpaper theming"]
  node_wallpick["Wallpaper picker"]
  node_themeset["Theme setter"]
  node_matugen["Palette templates"]
  node_themeconfig["Theme configuration<br/>[config.toml]"]
end

subgraph group_menus["Menus and launchers"]
  node_rofi["Rofi menus"]
  node_gamelauncher["Game picker"]
  node_heroic["Heroic library reader<br/>[heroic.py]"]
  node_steam["Steam library reader<br/>[steam.py]"]
  node_manualgames["Manual game reader<br/>[manual.py]"]
  node_usage["Usage ranking<br/>[usage.py]"]
end

subgraph group_assist["AI assistance"]
  node_aiwrap["AI wrapper"]
  node_crash["Crash diagnosis"]
  node_agent["AI agent"]
end

subgraph group_runtime["System utilities"]
  node_power["Power controls"]
  node_terminal["Terminal setup<br/>[kitty.conf]"]
  node_shell["Zsh setup"]
end

node_user(("Desktop user"))
node_claude["Claude Code"]
node_wallpapers["Wallpaper source"]

node_user -->|"uses session"| node_hypr
node_user -->|"picks wallpaper"| node_wallpick
node_wallpick -.->|"starts recoloring"| node_themeset
node_wallpick -->|"selects from"| node_wallpapers
node_themeset -.->|"uses theme"| node_themeconfig
node_themeconfig -->|"derives accents"| node_matugen
node_matugen -->|"themes"| node_bar
node_matugen -->|"themes"| node_rofi
node_matugen -->|"themes"| node_terminal
node_matugen -->|"themes"| node_hypr
node_matugen -->|"themes"| node_notifications
node_matugen -.->|"themes"| node_agent
node_user -->|"opens menus"| node_rofi
node_user -.->|"opens picker"| node_gamelauncher
node_user -->|"opens agent"| node_aiwrap
node_aiwrap -->|"dispatches to"| node_claude
node_crash -->|"offers diagnosis"| node_agent
node_user -->|"toggles game mode"| node_power
node_hypr -.->|"shows desktop bar"| node_bar

click node_hypr "https://github.com/ahmeddkhatib/dotfiles/tree/main/private_dot_config/hypr"
click node_bar "https://github.com/ahmeddkhatib/dotfiles/tree/main/private_dot_config/waybar"
click node_notifications "https://github.com/ahmeddkhatib/dotfiles/tree/main/private_dot_config/mako"
click node_session "https://github.com/ahmeddkhatib/dotfiles/tree/main/private_dot_config/systemd/user"
click node_wallpick "https://github.com/ahmeddkhatib/dotfiles/blob/main/dot_local/bin/executable_wall-pick"
click node_themeset "https://github.com/ahmeddkhatib/dotfiles/blob/main/dot_local/bin/executable_theme-set"
click node_matugen "https://github.com/ahmeddkhatib/dotfiles/tree/main/private_dot_config/matugen/templates"
click node_themeconfig "https://github.com/ahmeddkhatib/dotfiles/blob/main/private_dot_config/matugen/config.toml"
click node_rofi "https://github.com/ahmeddkhatib/dotfiles/tree/main/private_dot_config/rofi"
click node_gamelauncher "https://github.com/ahmeddkhatib/dotfiles/blob/main/dot_local/bin/executable_gamelauncher"
click node_heroic "https://github.com/ahmeddkhatib/dotfiles/blob/main/dot_local/lib/gamelauncher/heroic.py"
click node_steam "https://github.com/ahmeddkhatib/dotfiles/blob/main/dot_local/lib/gamelauncher/steam.py"
click node_manualgames "https://github.com/ahmeddkhatib/dotfiles/blob/main/dot_local/lib/gamelauncher/manual.py"
click node_usage "https://github.com/ahmeddkhatib/dotfiles/blob/main/dot_local/lib/gamelauncher/usage.py"
click node_aiwrap "https://github.com/ahmeddkhatib/dotfiles/blob/main/dot_local/bin/executable_ai"
click node_crash "https://github.com/ahmeddkhatib/dotfiles/blob/main/dot_local/bin/executable_crash-notify"
click node_agent "https://github.com/ahmeddkhatib/dotfiles/blob/main/private_dot_config/ai/agent"
click node_power "https://github.com/ahmeddkhatib/dotfiles/blob/main/dot_local/bin/executable_gamemode"
click node_terminal "https://github.com/ahmeddkhatib/dotfiles/blob/main/private_dot_config/kitty/kitty.conf"
click node_shell "https://github.com/ahmeddkhatib/dotfiles/tree/main/private_dot_config/zsh"

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_hypr,node_bar,node_notifications,node_session,node_user toneBlue
class node_wallpick,node_themeset,node_matugen,node_themeconfig toneAmber
class node_rofi,node_gamelauncher,node_heroic,node_steam,node_manualgames,node_usage toneMint
class node_aiwrap,node_crash,node_agent toneRose
class node_power,node_terminal,node_shell,node_claude,node_wallpapers toneIndigo
```

## Components

### Desktop session

- [Hyprland config](https://github.com/ahmeddkhatib/dotfiles/tree/main/private_dot_config/hypr): `private_dot_config/hypr`
- [Waybar](https://github.com/ahmeddkhatib/dotfiles/tree/main/private_dot_config/waybar): `private_dot_config/waybar`
- [Mako notifications](https://github.com/ahmeddkhatib/dotfiles/tree/main/private_dot_config/mako): `private_dot_config/mako`
- [Session services](https://github.com/ahmeddkhatib/dotfiles/tree/main/private_dot_config/systemd/user): `private_dot_config/systemd/user`

### Wallpaper theming

- [Wallpaper picker](https://github.com/ahmeddkhatib/dotfiles/blob/main/dot_local/bin/executable_wall-pick): `dot_local/bin/executable_wall-pick`
- [Theme setter](https://github.com/ahmeddkhatib/dotfiles/blob/main/dot_local/bin/executable_theme-set): `dot_local/bin/executable_theme-set`
- [Palette templates](https://github.com/ahmeddkhatib/dotfiles/tree/main/private_dot_config/matugen/templates): `private_dot_config/matugen/templates`
- [Theme configuration](https://github.com/ahmeddkhatib/dotfiles/blob/main/private_dot_config/matugen/config.toml): `private_dot_config/matugen/config.toml`

### Menus and launchers

- [Rofi menus](https://github.com/ahmeddkhatib/dotfiles/tree/main/private_dot_config/rofi): `private_dot_config/rofi`
- [Game picker](https://github.com/ahmeddkhatib/dotfiles/blob/main/dot_local/bin/executable_gamelauncher): `dot_local/bin/executable_gamelauncher`
- [Heroic library reader](https://github.com/ahmeddkhatib/dotfiles/blob/main/dot_local/lib/gamelauncher/heroic.py): `dot_local/lib/gamelauncher/heroic.py`
- [Steam library reader](https://github.com/ahmeddkhatib/dotfiles/blob/main/dot_local/lib/gamelauncher/steam.py): `dot_local/lib/gamelauncher/steam.py`
- [Manual game reader](https://github.com/ahmeddkhatib/dotfiles/blob/main/dot_local/lib/gamelauncher/manual.py): `dot_local/lib/gamelauncher/manual.py`
- [Usage ranking](https://github.com/ahmeddkhatib/dotfiles/blob/main/dot_local/lib/gamelauncher/usage.py): `dot_local/lib/gamelauncher/usage.py`

### AI assistance

- [AI wrapper](https://github.com/ahmeddkhatib/dotfiles/blob/main/dot_local/bin/executable_ai): `dot_local/bin/executable_ai`
- [Crash diagnosis](https://github.com/ahmeddkhatib/dotfiles/blob/main/dot_local/bin/executable_crash-notify): `dot_local/bin/executable_crash-notify`
- [AI agent](https://github.com/ahmeddkhatib/dotfiles/blob/main/private_dot_config/ai/agent): `private_dot_config/ai/agent`

### System utilities

- [Power controls](https://github.com/ahmeddkhatib/dotfiles/blob/main/dot_local/bin/executable_gamemode): `dot_local/bin/executable_gamemode`
- [Terminal setup](https://github.com/ahmeddkhatib/dotfiles/blob/main/private_dot_config/kitty/kitty.conf): `private_dot_config/kitty/kitty.conf`
- [Zsh setup](https://github.com/ahmeddkhatib/dotfiles/tree/main/private_dot_config/zsh): `private_dot_config/zsh`

### Other components

- **Desktop user**
- **Claude Code**
- **Wallpaper source**

## Connections

- Desktop user → Hyprland config: uses session (evidence: `README.md`)
- Desktop user → Wallpaper picker: picks wallpaper (evidence: `README.md`)
- Wallpaper picker → Theme setter: starts recoloring (evidence: `README.md`)
- Wallpaper picker → Wallpaper source: selects from (evidence: `README.md`)
- Theme setter → Theme configuration: uses theme (evidence: `README.md`)
- Theme configuration → Palette templates: derives accents (evidence: `README.md`)
- Palette templates → Waybar: themes (evidence: `README.md`)
- Palette templates → Rofi menus: themes (evidence: `README.md`)
- Palette templates → Terminal setup: themes (evidence: `README.md`)
- Palette templates → Hyprland config: themes (evidence: `README.md`)
- Palette templates → Mako notifications: themes (evidence: `README.md`)
- Palette templates → AI agent: themes (evidence: `README.md`)
- Desktop user → Rofi menus: opens menus (evidence: `README.md`)
- Desktop user → Game picker: opens picker (evidence: `README.md`)
- Desktop user → AI wrapper: opens agent (evidence: `README.md`)
- AI wrapper → Claude Code: dispatches to (evidence: `README.md`)
- Crash diagnosis → AI agent: offers diagnosis (evidence: `README.md`)
- Desktop user → Power controls: toggles game mode (evidence: `README.md`)
- Hyprland config → Waybar: shows desktop bar (evidence: `README.md`)
