# arjun-143-kamath/arch-linux-dotfiles architecture

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

- Interactive diagram: https://gitdiagram.com/arjun-143-kamath/arch-linux-dotfiles
- Repository: https://github.com/arjun-143-kamath/arch-linux-dotfiles

## Overview

ark-dotfiles is a modular Arch Linux/Hyprland desktop configuration, with wallpaper-driven theming as its central runtime workflow. A wallpaper switch updates persistent state and the stable wallpaper link, applies the wallpaper, generates themes, and reloads desktop components; lock-screen and SDDM integrations keep login and lock visuals aligned. The graph follows relationships documented in the README; source excerpts were not available, so undocumented implementation calls are omitted.

Main entry points: [`home/.local/bin/change_wall_on_key.sh`](https://github.com/arjun-143-kamath/arch-linux-dotfiles/blob/main/home/.local/bin/change_wall_on_key.sh) (Wallpaper switcher), [`home/.config/walltheme/walltheme.py`](https://github.com/arjun-143-kamath/arch-linux-dotfiles/blob/main/home/.config/walltheme/walltheme.py) (Palette generator), [`home/.local/bin/set_wallpaper_from_path.sh`](https://github.com/arjun-143-kamath/arch-linux-dotfiles/blob/main/home/.local/bin/set_wallpaper_from_path.sh) (Current wallpaper link), [`home/.local/bin/hyprlock-wallpaper.sh`](https://github.com/arjun-143-kamath/arch-linux-dotfiles/blob/main/home/.local/bin/hyprlock-wallpaper.sh) (Lock wallpaper sync)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_wallpaper["Wallpaper workflow"]
  node_switcher["Wallpaper switcher"]
  node_state[("Wallpaper state")]
  node_wall_link["Current wallpaper link"]
  node_wall_renderer["Wallpaper renderer"]
  node_theme_command["Theme command<br/>[walltheme]"]
  node_theme_generator["Palette generator<br/>[walltheme.py]"]
  node_theme_data["Generated palette<br/>[walltheme.py]"]
end

subgraph group_session["Desktop session"]
  node_hyprland["Hyprland session<br/>[hyprland.lua]"]
  node_machine_monitors["Machine monitors<br/>[monitors.lua]"]
end

subgraph group_themes["Theme consumers"]
  node_waybar["Waybar<br/>[config.jsonc]"]
  node_ghostty["Ghostty<br/>[config]"]
  node_hypr_generator["Hyprland theme output"]
  node_waybar_generator["Waybar theme output<br/>[generate-waybar.py]"]
  node_ghostty_generator["Ghostty theme output"]
  node_hyprland_theme["Hyprland generated config"]
  node_waybar_theme["Waybar generated CSS<br/>[generate-waybar.py]"]
  node_ghostty_theme["Ghostty generated config"]
end

subgraph group_login["Login and lock"]
  node_hyprlock["Hyprlock<br/>[hyprlock.conf]"]
  node_hyprlock_sync["Lock wallpaper sync"]
  node_sddm_sync["SDDM wallpaper sync"]
  node_lock_generator["Hyprlock theme output"]
  node_hyprlock_theme["Hyprlock generated config"]
end

node_user(("User"))
node_wallpaper_file["Wallpaper file"]
node_awww_mpvpaper["awww / mpvpaper"]

node_user -->|"changes wallpaper"| node_switcher
node_switcher -->|"finds next"| node_wallpaper_file
node_switcher -->|"updates state"| node_state
node_switcher -->|"updates link"| node_wall_link
node_switcher -->|"applies wallpaper"| node_wall_renderer
node_wall_renderer -->|"uses renderer"| node_awww_mpvpaper
node_switcher -->|"runs theme"| node_theme_command
node_theme_command -->|"invokes generator"| node_theme_generator
node_theme_generator -->|"writes palette"| node_theme_data
node_theme_generator -->|"generates config"| node_hypr_generator
node_theme_generator -->|"generates CSS"| node_waybar_generator
node_theme_generator -->|"generates config"| node_ghostty_generator
node_theme_generator -->|"generates config"| node_lock_generator
node_hypr_generator -->|"writes config"| node_hyprland_theme
node_waybar_generator -->|"writes CSS"| node_waybar_theme
node_ghostty_generator -->|"writes config"| node_ghostty_theme
node_lock_generator -->|"writes config"| node_hyprlock_theme
node_hyprland_theme -->|"themes session"| node_hyprland
node_waybar_theme -->|"themes bar"| node_waybar
node_ghostty_theme -->|"themes terminal"| node_ghostty
node_hyprlock_theme -->|"themes lock screen"| node_hyprlock
node_wall_link -->|"sets wallpaper"| node_hyprlock
node_wall_link -->|"feeds desktop"| node_wall_renderer
node_hyprlock_sync -->|"verifies state"| node_state
node_hyprlock_sync -->|"synchronizes link"| node_wall_link
node_sddm_sync -->|"uses current image"| node_wall_link
node_hyprland -->|"loads by hostname"| node_machine_monitors

click node_switcher "https://github.com/arjun-143-kamath/arch-linux-dotfiles/blob/main/home/.local/bin/change_wall_on_key.sh"
click node_state "https://github.com/arjun-143-kamath/arch-linux-dotfiles/blob/main/home/.local/bin/set_current_wall.sh"
click node_wall_link "https://github.com/arjun-143-kamath/arch-linux-dotfiles/blob/main/home/.local/bin/set_wallpaper_from_path.sh"
click node_theme_command "https://github.com/arjun-143-kamath/arch-linux-dotfiles/blob/main/home/.local/bin/walltheme"
click node_theme_generator "https://github.com/arjun-143-kamath/arch-linux-dotfiles/blob/main/home/.config/walltheme/walltheme.py"
click node_theme_data "https://github.com/arjun-143-kamath/arch-linux-dotfiles/blob/main/home/.config/walltheme/walltheme.py"
click node_hyprland "https://github.com/arjun-143-kamath/arch-linux-dotfiles/blob/main/home/.config/hypr/hyprland.lua"
click node_machine_monitors "https://github.com/arjun-143-kamath/arch-linux-dotfiles/blob/main/machines/ark/monitors.lua"
click node_waybar "https://github.com/arjun-143-kamath/arch-linux-dotfiles/blob/main/home/.config/waybar/config.jsonc"
click node_ghostty "https://github.com/arjun-143-kamath/arch-linux-dotfiles/blob/main/home/.config/ghostty/config"
click node_hyprlock "https://github.com/arjun-143-kamath/arch-linux-dotfiles/blob/main/home/.config/hypr/hyprlock.conf"
click node_hyprlock_sync "https://github.com/arjun-143-kamath/arch-linux-dotfiles/blob/main/home/.local/bin/hyprlock-wallpaper.sh"
click node_sddm_sync "https://github.com/arjun-143-kamath/arch-linux-dotfiles/blob/main/system/usr/local/bin/sddm-wallpaper"
click node_hypr_generator "https://github.com/arjun-143-kamath/arch-linux-dotfiles/blob/main/home/.config/walltheme/generate-hyprland.py"
click node_waybar_generator "https://github.com/arjun-143-kamath/arch-linux-dotfiles/blob/main/home/.config/walltheme/generate-waybar.py"
click node_ghostty_generator "https://github.com/arjun-143-kamath/arch-linux-dotfiles/blob/main/home/.config/walltheme/generate-ghostty.py"
click node_lock_generator "https://github.com/arjun-143-kamath/arch-linux-dotfiles/blob/main/home/.config/walltheme/generate-hyprlock.py"
click node_hyprland_theme "https://github.com/arjun-143-kamath/arch-linux-dotfiles/blob/main/home/.config/walltheme/generate-hyprland.py"
click node_waybar_theme "https://github.com/arjun-143-kamath/arch-linux-dotfiles/blob/main/home/.config/walltheme/generate-waybar.py"
click node_ghostty_theme "https://github.com/arjun-143-kamath/arch-linux-dotfiles/blob/main/home/.config/walltheme/generate-ghostty.py"
click node_hyprlock_theme "https://github.com/arjun-143-kamath/arch-linux-dotfiles/blob/main/home/.config/walltheme/generate-hyprlock.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_switcher,node_state,node_wall_link,node_wall_renderer,node_theme_command,node_theme_generator,node_theme_data,node_user toneBlue
class node_hyprland,node_machine_monitors toneAmber
class node_waybar,node_ghostty,node_hypr_generator,node_waybar_generator,node_ghostty_generator,node_hyprland_theme,node_waybar_theme,node_ghostty_theme toneMint
class node_hyprlock,node_hyprlock_sync,node_sddm_sync,node_lock_generator,node_hyprlock_theme toneRose
class node_wallpaper_file,node_awww_mpvpaper toneIndigo
```

## Components

### Wallpaper workflow

- [Wallpaper switcher](https://github.com/arjun-143-kamath/arch-linux-dotfiles/blob/main/home/.local/bin/change_wall_on_key.sh): `home/.local/bin/change_wall_on_key.sh`
- [Wallpaper state](https://github.com/arjun-143-kamath/arch-linux-dotfiles/blob/main/home/.local/bin/set_current_wall.sh): `home/.local/bin/set_current_wall.sh`
- [Current wallpaper link](https://github.com/arjun-143-kamath/arch-linux-dotfiles/blob/main/home/.local/bin/set_wallpaper_from_path.sh): `home/.local/bin/set_wallpaper_from_path.sh`
- **Wallpaper renderer**
- [Theme command](https://github.com/arjun-143-kamath/arch-linux-dotfiles/blob/main/home/.local/bin/walltheme): `home/.local/bin/walltheme`
- [Palette generator](https://github.com/arjun-143-kamath/arch-linux-dotfiles/blob/main/home/.config/walltheme/walltheme.py): `home/.config/walltheme/walltheme.py`
- [Generated palette](https://github.com/arjun-143-kamath/arch-linux-dotfiles/blob/main/home/.config/walltheme/walltheme.py): `home/.config/walltheme/walltheme.py`

### Desktop session

- [Hyprland session](https://github.com/arjun-143-kamath/arch-linux-dotfiles/blob/main/home/.config/hypr/hyprland.lua): `home/.config/hypr/hyprland.lua`
- [Machine monitors](https://github.com/arjun-143-kamath/arch-linux-dotfiles/blob/main/machines/ark/monitors.lua): `machines/ark/monitors.lua`

### Theme consumers

- [Waybar](https://github.com/arjun-143-kamath/arch-linux-dotfiles/blob/main/home/.config/waybar/config.jsonc): `home/.config/waybar/config.jsonc`
- [Ghostty](https://github.com/arjun-143-kamath/arch-linux-dotfiles/blob/main/home/.config/ghostty/config): `home/.config/ghostty/config`
- [Hyprland theme output](https://github.com/arjun-143-kamath/arch-linux-dotfiles/blob/main/home/.config/walltheme/generate-hyprland.py): `home/.config/walltheme/generate-hyprland.py`
- [Waybar theme output](https://github.com/arjun-143-kamath/arch-linux-dotfiles/blob/main/home/.config/walltheme/generate-waybar.py): `home/.config/walltheme/generate-waybar.py`
- [Ghostty theme output](https://github.com/arjun-143-kamath/arch-linux-dotfiles/blob/main/home/.config/walltheme/generate-ghostty.py): `home/.config/walltheme/generate-ghostty.py`
- [Hyprland generated config](https://github.com/arjun-143-kamath/arch-linux-dotfiles/blob/main/home/.config/walltheme/generate-hyprland.py): `home/.config/walltheme/generate-hyprland.py`
- [Waybar generated CSS](https://github.com/arjun-143-kamath/arch-linux-dotfiles/blob/main/home/.config/walltheme/generate-waybar.py): `home/.config/walltheme/generate-waybar.py`
- [Ghostty generated config](https://github.com/arjun-143-kamath/arch-linux-dotfiles/blob/main/home/.config/walltheme/generate-ghostty.py): `home/.config/walltheme/generate-ghostty.py`

### Login and lock

- [Hyprlock](https://github.com/arjun-143-kamath/arch-linux-dotfiles/blob/main/home/.config/hypr/hyprlock.conf): `home/.config/hypr/hyprlock.conf`
- [Lock wallpaper sync](https://github.com/arjun-143-kamath/arch-linux-dotfiles/blob/main/home/.local/bin/hyprlock-wallpaper.sh): `home/.local/bin/hyprlock-wallpaper.sh`
- [SDDM wallpaper sync](https://github.com/arjun-143-kamath/arch-linux-dotfiles/blob/main/system/usr/local/bin/sddm-wallpaper): `system/usr/local/bin/sddm-wallpaper`
- [Hyprlock theme output](https://github.com/arjun-143-kamath/arch-linux-dotfiles/blob/main/home/.config/walltheme/generate-hyprlock.py): `home/.config/walltheme/generate-hyprlock.py`
- [Hyprlock generated config](https://github.com/arjun-143-kamath/arch-linux-dotfiles/blob/main/home/.config/walltheme/generate-hyprlock.py): `home/.config/walltheme/generate-hyprlock.py`

### Other components

- **User**
- **Wallpaper file**
- **awww / mpvpaper**

## Connections

- User → Wallpaper switcher: changes wallpaper (evidence: `README.md`)
- Wallpaper switcher → Wallpaper file: finds next (evidence: `README.md`)
- Wallpaper switcher → Wallpaper state: updates state (evidence: `README.md`)
- Wallpaper switcher → Current wallpaper link: updates link (evidence: `README.md`)
- Wallpaper switcher → Wallpaper renderer: applies wallpaper (evidence: `README.md`)
- Wallpaper renderer → awww / mpvpaper: uses renderer (evidence: `README.md`)
- Wallpaper switcher → Theme command: runs theme (evidence: `README.md`)
- Theme command → Palette generator: invokes generator (evidence: `README.md`)
- Palette generator → Generated palette: writes palette (evidence: `README.md`)
- Palette generator → Hyprland theme output: generates config (evidence: `README.md`)
- Palette generator → Waybar theme output: generates CSS (evidence: `README.md`)
- Palette generator → Ghostty theme output: generates config (evidence: `README.md`)
- Palette generator → Hyprlock theme output: generates config (evidence: `README.md`)
- Hyprland theme output → Hyprland generated config: writes config (evidence: `README.md`)
- Waybar theme output → Waybar generated CSS: writes CSS (evidence: `README.md`)
- Ghostty theme output → Ghostty generated config: writes config (evidence: `README.md`)
- Hyprlock theme output → Hyprlock generated config: writes config (evidence: `README.md`)
- Hyprland generated config → Hyprland session: themes session (evidence: `README.md`)
- Waybar generated CSS → Waybar: themes bar (evidence: `README.md`)
- Ghostty generated config → Ghostty: themes terminal (evidence: `README.md`)
- Hyprlock generated config → Hyprlock: themes lock screen (evidence: `README.md`)
- Current wallpaper link → Hyprlock: sets wallpaper (evidence: `README.md`)
- Current wallpaper link → Wallpaper renderer: feeds desktop (evidence: `README.md`)
- Lock wallpaper sync → Wallpaper state: verifies state (evidence: `README.md`)
- Lock wallpaper sync → Current wallpaper link: synchronizes link (evidence: `README.md`)
- SDDM wallpaper sync → Current wallpaper link: uses current image (evidence: `README.md`)
- Hyprland session → Machine monitors: loads by hostname (evidence: `README.md`)
