# juan-d12/hyprland-dotfiles architecture

> Architecture diagram of the GitHub repository juan-d12/hyprland-dotfiles, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-03-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/juan-d12/hyprland-dotfiles
- Repository: https://github.com/juan-d12/hyprland-dotfiles

## Overview

##### Main Components
- Hyprland Core: This is the main window manager. Represent its configuration files (hyprland.conf, hypridle.conf, hyprlock.conf, and hyprpaper.conf) as one component.
- Utilities and Enhancements:
- fastfetch: Displays system info matching the theme (configured via arch.jsonc, arch.txt, and associated images).
- Terminal (kitty): Configuration for terminal appearance.
- Status Bar (waybar): Config using JSON and CSS for layout and style.
- Notification System (dunst): With its configuration file.
- Application Launcher (wofi): With its config file and CSS styling.
- Wallpaper Management:
- The Wallpaper folder holds images used for wallpapers.

##### Relationships and Interactions
- That Hyprland (the core) is the environment where all these configurations are applied.
- Connection from the user’s shell environment (with a snippet added to ~/.bashrc to invoke fastfetch) to the fastfetch configuration, ensuring a consistent appearance on terminal startup.

##### Architectural Patterns and Design Principles
- Modular Configuration: Each utility or tool (e.g., kitty, waybar, wofi) has its own dedicated configuration file or set of files.
- Script-Driven Integration: A shell script (change_wallpaper.sh) ties the wallpaper and theme changes together across different components.

## Diagram (Mermaid)

```mermaid
flowchart TD
    A("User Login/Actions"):::system
    B("Hyprland Core (Config)"):::config
    C("Change Wallpaper Script"):::process
    D("Wallpaper Management (Images)"):::storage
    F("Terminal (kitty)"):::utility
    E("fastfetch (System Info)"):::utility
    G("Status Bar (waybar)"):::utility
    H("Notification System (dunst)"):::utility
    I("Logout Menu (wlogout)"):::utility
    J("App Launcher (wofi)"):::utility

    %% User initialization and login
    A -->|"initializes"| B
    A -->|"launches"| F
    F -->|"invokes fastfetch via .bashrc"| E

    %% Hyprland keybind triggers wallpaper change
    B -->|"Ctrl+Alt+w"| C
    C -->|"updates wallpaper"| D
    C -->|"syncs theme"| E
    C -->|"syncs theme"| G
    C -->|"syncs theme"| I

    %% Hyprland environment configures other components
    B -->|"provides base config"| H
    B -->|"provides base config"| J

    %% Styles for visual clarity
    classDef system fill:#E3F2FD,stroke:#0D47A1,stroke-width:2px;
    classDef config fill:#FFF9C4,stroke:#FBC02D,stroke-width:2px;
    classDef utility fill:#C8E6C9,stroke:#388E3C,stroke-width:2px;
    classDef process fill:#FFCDD2,stroke:#C62828,stroke-width:2px;
    classDef storage fill:#D1C4E9,stroke:#673AB7,stroke-width:2px;

    %% Click Events
    click B "https://github.com/juan-d12/hyprland-dotfiles/blob/main/config/hypr/hyprland.conf"
    click C "https://github.com/juan-d12/hyprland-dotfiles/blob/main/config/hypr/change_wallpaper.sh"
    click E "https://github.com/juan-d12/hyprland-dotfiles/blob/main/config/fastfetch/arch.jsonc"
    click F "https://github.com/juan-d12/hyprland-dotfiles/blob/main/config/kitty/kitty.conf"
    click G "https://github.com/juan-d12/hyprland-dotfiles/blob/main/config/waybar/config.jsonc"
    click H "https://github.com/juan-d12/hyprland-dotfiles/tree/main/config/dunst/dunstrc"
    click I "https://github.com/juan-d12/hyprland-dotfiles/tree/main/config/wlogout/layout"
    click J "https://github.com/juan-d12/hyprland-dotfiles/tree/main/config/wofi/config"
    click D "https://github.com/juan-d12/hyprland-dotfiles/tree/main/Wallpaper"
```
