# fantasy0x1/dotfiles architecture

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

- Interactive diagram: https://gitdiagram.com/fantasy0x1/dotfiles
- Repository: https://github.com/fantasy0x1/dotfiles

## Overview

##### Main Components Structure

**Window Management Layer**
- Qtile (Primary WM)
- i3-wm (Alternative WM)

**System Interface Layer**
- Picom (Compositor)
- Dunst (Notifications)
- Rofi/dmenu (App Launchers)

**Terminal Environment Layer**
- Fish Shell
- Alacritty/WezTerm
- Tmux
- NeoVim (NvChad)

##### Component Relationships

- Blue: Window Management components
- Green: System Interface components
- Yellow: Terminal Environment components
- Gray: Configuration files

- Double lines: Primary user interaction points

##### Configuration Structure

**.config/**
- WM Configs (qtile/, i3/)
- Shell Configs (fish/)
- Terminal Configs (alacritty/, wezterm/)
- Tool Configs (rofi/, nvim/, etc.)

##### Interaction Flows

How components interact:
- User → Window Manager → Applications
- Window Manager → Compositor → Display
- Shell → Terminal → Applications
- Notifications → Dunst → Display

##### Security-focused features

Use standardized symbols:
- Rectangles: Main components
- Clouds: External dependencies

Keep the abstraction level focused on the system architecture while showing the relationships between different components and their configurations. This will help understand both the overall structure and the specific implementation details of this desktop environment setup.

## Diagram (Mermaid)

```mermaid
graph TB
    %% Styles and classes
    classDef wm fill:#3498db,stroke:#2980b9,color:white
    classDef system fill:#2ecc71,stroke:#27ae60,color:white
    classDef terminal fill:#f1c40f,stroke:#f39c12,color:black
    classDef config fill:#95a5a6,stroke:#7f8c8d,color:white
    
    %% Window Management Layer
    subgraph WM
        QTILE[Qtile]:::wm
        I3[i3-wm]:::wm
        QSCRIPTS[Qtile Scripts]:::wm
        QMODULES[Qtile Modules]:::wm
        I3BLOCKS[i3blocks]:::wm
        
        QTILE --> QSCRIPTS
        QTILE --> QMODULES
        I3 --> I3BLOCKS
    end
    
    %% System Interface Layer
    subgraph SI
        PICOM[Picom]:::system
        DUNST[Dunst]:::system
        ROFI[Rofi]:::system
        RLAUNCHERS[Rofi Launchers]:::system
        RPOWER[Rofi Power Menu]:::system
        
        ROFI --> RLAUNCHERS
        ROFI --> RPOWER
    end
    
    %% Terminal Environment Layer
    subgraph TE
        FISH[Fish Shell]:::terminal
        FFUNC[Fish Functions]:::terminal
        ALACRITTY[Alacritty]:::terminal
        WEZTERM[WezTerm]:::terminal
        NVIM[NeoVim]:::terminal
        
        FISH --> FFUNC
    end
    
    %% Relationships
    QTILE --> PICOM
    I3 --> PICOM
    QTILE --> DUNST
    I3 --> DUNST
    QTILE --> ROFI
    I3 --> ROFI
    
    %% Click events
    click QTILE "https://github.com/fantasy0x1/dotfiles/blob/main/.config/qtile/config.py"
    click I3 "https://github.com/fantasy0x1/dotfiles/tree/main/.config/i3/config"
    click PICOM "https://github.com/fantasy0x1/dotfiles/blob/main/.config/picom/picom.conf"
    click DUNST "https://github.com/fantasy0x1/dotfiles/tree/main/.config/dunst/dunstrc"
    click ROFI "https://github.com/fantasy0x1/dotfiles/blob/main/.config/rofi/config.rasi"
    click FISH "https://github.com/fantasy0x1/dotfiles/blob/main/.config/fish/config.fish"
    click ALACRITTY "https://github.com/fantasy0x1/dotfiles/blob/main/.config/alacritty/alacritty.yml"
    click WEZTERM "https://github.com/fantasy0x1/dotfiles/blob/main/.config/wezterm/wezterm.lua"
    click NVIM "https://github.com/fantasy0x1/dotfiles/blob/main/.config/nvim/init.lua"
    click I3BLOCKS "https://github.com/fantasy0x1/dotfiles/tree/main/.config/i3blocks/config"
    click QSCRIPTS "https://github.com/fantasy0x1/dotfiles/blob/main/.config/qtile/scripts/autostart.sh"
    click RLAUNCHERS "https://github.com/fantasy0x1/dotfiles/tree/main/.config/rofi/launchers/"
    click RPOWER "https://github.com/fantasy0x1/dotfiles/tree/main/.config/rofi/powermenu/"
    click FFUNC "https://github.com/fantasy0x1/dotfiles/tree/main/.config/fish/functions/"
    click QMODULES "https://github.com/fantasy0x1/dotfiles/tree/main/.config/qtile/modules/"
    
    %% Legend
    subgraph Legend
        L1[Window Management]:::wm
        L2[System Interface]:::system
        L3[Terminal Environment]:::terminal
    end
```
