# brainitech/brain_shell architecture

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

- Interactive diagram: https://gitdiagram.com/brainitech/brain_shell
- Repository: https://github.com/brainitech/brain_shell

## Overview

Brain_Shell is a Quickshell/QML desktop shell for Hyprland. Users interact with its shell surfaces, dashboard, and popups to manage desktop state and launch controls; the product also includes live monitoring, theming, settings, connectivity, capture, notifications, and productivity tools. The README documents these capabilities but the only sampled source is a Hyprland-bind parsing script, so component-to-component runtime calls are not established; edges below describe documented user flows and integrations, not inspected QML wiring.

Main entry points: [`src/popups/Dashboard.qml`](https://github.com/brainitech/brain_shell/blob/main/src/popups/Dashboard.qml) (System dashboard), [`src/services/WallpaperService.qml`](https://github.com/brainitech/brain_shell/blob/main/src/services/WallpaperService.qml) (Wallpaper and colors), [`src/services/config_tab/ShellConfig.qml`](https://github.com/brainitech/brain_shell/blob/main/src/services/config_tab/ShellConfig.qml) (Live settings), [`src/popups/NetworkPopup.qml`](https://github.com/brainitech/brain_shell/blob/main/src/popups/NetworkPopup.qml) (Connectivity menus)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_surfaces["Shell surfaces"]
  node_shellhost["Shell host<br/>[ShellHost.qml]"]
  node_status["Status modules"]
  node_center["Interactive notch"]
  node_leftpanel["Workspace panel"]
  node_rightpanel["Status panel"]
end

subgraph group_features["Desktop features"]
  node_dashboard["System dashboard<br/>[Dashboard.qml]"]
  node_launcher["App launcher<br/>[AppLauncher.qml]"]
  node_kanban["Kanban board<br/>[KanbanBoard.qml]"]
  node_settings["Live settings<br/>[ShellConfig.qml]"]
  node_connectivity["Connectivity menus<br/>[NetworkPopup.qml]"]
  node_capture["Screen capture"]
  node_notifications["Notifications"]
end

subgraph group_services["Runtime services"]
  node_monitoring["Resource monitoring"]
  node_media["Media and audio<br/>[MediaService.qml]"]
  node_clipboard["Clipboard history"]
end

subgraph group_appearance["Configuration and appearance"]
  node_wallpaper["Wallpaper and colors"]
  node_theme["Theme system<br/>[Theme.qml]"]
  node_preferences["Preferences<br/>[PrefsService.qml]"]
end

node_user(("Desktop user"))
node_hyprland["Hyprland"]
node_quickshell["Quickshell"]
node_matugen["Matugen"]
node_desktoptools["Desktop utilities"]

node_user -->|"interacts with"| node_shellhost
node_quickshell -->|"hosts shell"| node_shellhost
node_hyprland -->|"provides desktop context"| node_status
node_user -->|"opens controls"| node_dashboard
node_user -->|"switches workspaces"| node_leftpanel
node_user -->|"uses quick controls"| node_center
node_user -->|"views status"| node_rightpanel
node_dashboard -->|"launches apps"| node_launcher
node_dashboard -->|"manages tasks"| node_kanban
node_user -->|"configures shell"| node_settings
node_user -->|"manages connections"| node_connectivity
node_user -->|"captures screen"| node_capture
node_user -->|"handles alerts"| node_notifications
node_dashboard -->|"views live metrics"| node_monitoring
node_dashboard -->|"controls playback"| node_media
node_user -->|"browses history"| node_clipboard
node_wallpaper -->|"generates colors"| node_matugen
node_wallpaper -->|"adapts appearance"| node_theme
node_settings -.->|"changes preferences"| node_preferences
node_capture -->|"uses capture tools"| node_desktoptools
node_connectivity -->|"manages system links"| node_desktoptools

click node_shellhost "https://github.com/brainitech/brain_shell/blob/main/src/windows/ShellHost.qml"
click node_status "https://github.com/brainitech/brain_shell/tree/main/src/modules"
click node_center "https://github.com/brainitech/brain_shell/tree/main/src/modules/Center"
click node_leftpanel "https://github.com/brainitech/brain_shell/tree/main/src/modules/Left"
click node_rightpanel "https://github.com/brainitech/brain_shell/tree/main/src/modules/Right"
click node_dashboard "https://github.com/brainitech/brain_shell/blob/main/src/popups/Dashboard.qml"
click node_launcher "https://github.com/brainitech/brain_shell/blob/main/src/popups/dashboard_tabs/AppLauncher.qml"
click node_kanban "https://github.com/brainitech/brain_shell/blob/main/src/popups/dashboard_tabs/KanbanBoard.qml"
click node_settings "https://github.com/brainitech/brain_shell/blob/main/src/services/config_tab/ShellConfig.qml"
click node_connectivity "https://github.com/brainitech/brain_shell/blob/main/src/popups/NetworkPopup.qml"
click node_capture "https://github.com/brainitech/brain_shell/blob/main/src/services/ScreenRecService.qml"
click node_notifications "https://github.com/brainitech/brain_shell/blob/main/src/services/notifications/NotificationService.qml"
click node_monitoring "https://github.com/brainitech/brain_shell/tree/main/src/services/system"
click node_media "https://github.com/brainitech/brain_shell/blob/main/src/services/MediaService.qml"
click node_clipboard "https://github.com/brainitech/brain_shell/blob/main/src/services/ClipboardService.qml"
click node_wallpaper "https://github.com/brainitech/brain_shell/blob/main/src/services/WallpaperService.qml"
click node_theme "https://github.com/brainitech/brain_shell/blob/main/src/theme/Theme.qml"
click node_preferences "https://github.com/brainitech/brain_shell/blob/main/src/services/PrefsService.qml"

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_shellhost,node_status,node_center,node_leftpanel,node_rightpanel,node_user toneBlue
class node_dashboard,node_launcher,node_kanban,node_settings,node_connectivity,node_capture,node_notifications toneAmber
class node_monitoring,node_media,node_clipboard toneMint
class node_wallpaper,node_theme,node_preferences toneRose
class node_hyprland,node_quickshell,node_matugen,node_desktoptools toneIndigo
```

## Components

### Shell surfaces

- [Shell host](https://github.com/brainitech/brain_shell/blob/main/src/windows/ShellHost.qml): `src/windows/ShellHost.qml`
- [Status modules](https://github.com/brainitech/brain_shell/tree/main/src/modules): `src/modules`
- [Interactive notch](https://github.com/brainitech/brain_shell/tree/main/src/modules/Center): `src/modules/Center`
- [Workspace panel](https://github.com/brainitech/brain_shell/tree/main/src/modules/Left): `src/modules/Left`
- [Status panel](https://github.com/brainitech/brain_shell/tree/main/src/modules/Right): `src/modules/Right`

### Desktop features

- [System dashboard](https://github.com/brainitech/brain_shell/blob/main/src/popups/Dashboard.qml): `src/popups/Dashboard.qml`
- [App launcher](https://github.com/brainitech/brain_shell/blob/main/src/popups/dashboard_tabs/AppLauncher.qml): `src/popups/dashboard_tabs/AppLauncher.qml`
- [Kanban board](https://github.com/brainitech/brain_shell/blob/main/src/popups/dashboard_tabs/KanbanBoard.qml): `src/popups/dashboard_tabs/KanbanBoard.qml`
- [Live settings](https://github.com/brainitech/brain_shell/blob/main/src/services/config_tab/ShellConfig.qml): `src/services/config_tab/ShellConfig.qml`
- [Connectivity menus](https://github.com/brainitech/brain_shell/blob/main/src/popups/NetworkPopup.qml): `src/popups/NetworkPopup.qml`
- [Screen capture](https://github.com/brainitech/brain_shell/blob/main/src/services/ScreenRecService.qml): `src/services/ScreenRecService.qml`
- [Notifications](https://github.com/brainitech/brain_shell/blob/main/src/services/notifications/NotificationService.qml): `src/services/notifications/NotificationService.qml`

### Runtime services

- [Resource monitoring](https://github.com/brainitech/brain_shell/tree/main/src/services/system): `src/services/system`
- [Media and audio](https://github.com/brainitech/brain_shell/blob/main/src/services/MediaService.qml): `src/services/MediaService.qml`
- [Clipboard history](https://github.com/brainitech/brain_shell/blob/main/src/services/ClipboardService.qml): `src/services/ClipboardService.qml`

### Configuration and appearance

- [Wallpaper and colors](https://github.com/brainitech/brain_shell/blob/main/src/services/WallpaperService.qml): `src/services/WallpaperService.qml`
- [Theme system](https://github.com/brainitech/brain_shell/blob/main/src/theme/Theme.qml): `src/theme/Theme.qml`
- [Preferences](https://github.com/brainitech/brain_shell/blob/main/src/services/PrefsService.qml): `src/services/PrefsService.qml`

### Other components

- **Desktop user**
- **Hyprland**
- **Quickshell**
- **Matugen**
- **Desktop utilities**

## Connections

- Desktop user → Shell host: interacts with (evidence: `README.md`)
- Quickshell → Shell host: hosts shell (evidence: `README.md`)
- Hyprland → Status modules: provides desktop context (evidence: `README.md`)
- Desktop user → System dashboard: opens controls (evidence: `README.md`)
- Desktop user → Workspace panel: switches workspaces (evidence: `README.md`)
- Desktop user → Interactive notch: uses quick controls (evidence: `README.md`)
- Desktop user → Status panel: views status (evidence: `README.md`)
- System dashboard → App launcher: launches apps (evidence: `README.md`)
- System dashboard → Kanban board: manages tasks (evidence: `README.md`)
- Desktop user → Live settings: configures shell (evidence: `README.md`)
- Desktop user → Connectivity menus: manages connections (evidence: `README.md`)
- Desktop user → Screen capture: captures screen (evidence: `README.md`)
- Desktop user → Notifications: handles alerts (evidence: `README.md`)
- System dashboard → Resource monitoring: views live metrics (evidence: `README.md`)
- System dashboard → Media and audio: controls playback (evidence: `README.md`)
- Desktop user → Clipboard history: browses history (evidence: `README.md`)
- Wallpaper and colors → Matugen: generates colors (evidence: `README.md`)
- Wallpaper and colors → Theme system: adapts appearance (evidence: `README.md`)
- Live settings → Preferences: changes preferences
- Screen capture → Desktop utilities: uses capture tools (evidence: `README.md`)
- Connectivity menus → Desktop utilities: manages system links (evidence: `README.md`)
