# micheleg/dash-to-dock architecture

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

- Interactive diagram: https://gitdiagram.com/micheleg/dash-to-dock
- Repository: https://github.com/micheleg/dash-to-dock

## Overview

Dash to Dock is a GNOME Shell extension that turns the application dash into a desktop dock for launching apps and switching among windows and workspaces. The principal workflow is extension activation creating dock instances, whose dash presents application icons and window actions; supporting branches handle visibility, previews, indicators, theming, and location-based apps. The README describes the product purpose; source evidence is strongest for dock-to-dash and icon-to-preview/indicator calls. Other module connections are omitted where excerpts do not establish them.

Main entry points: [`docking.js`](https://github.com/micheleg/dash-to-dock/blob/master/docking.js) (Dock manager), [`appIcons.js`](https://github.com/micheleg/dash-to-dock/blob/master/appIcons.js) (Application icons), [`extension.js`](https://github.com/micheleg/dash-to-dock/blob/master/extension.js) (Extension entry), [`dash.js`](https://github.com/micheleg/dash-to-dock/blob/master/dash.js) (Dock dash)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_lifecycle["Dock lifecycle"]
  node_extension["Extension entry<br/>[extension.js]"]
  node_dock_manager["Dock manager<br/>[docking.js]"]
  node_intellihide["Intelligent hide<br/>[intellihide.js]"]
  node_dock_struts["Dock struts<br/>[dockStruts.js]"]
end

subgraph group_dock_ui["Dock interface"]
  node_dash["Dock dash<br/>[dash.js]"]
  node_app_icons["Application icons<br/>[appIcons.js]"]
  node_indicators["Icon indicators"]
  node_icon_decorators["Icon decorators"]
end

subgraph group_window_apps["Windows and apps"]
  node_window_previews["Window previews<br/>[windowPreview.js]"]
  node_app_spread["App spread<br/>[appSpread.js]"]
  node_locations["Location apps<br/>[locations.js]"]
  node_file_manager_api["File manager API<br/>[fileManager1API.js]"]
  node_launcher_api["Launcher API<br/>[launcherAPI.js]"]
end

subgraph group_support["Dock services"]
  node_notifications["Notifications monitor"]
  node_dbus_menu["DBus menus<br/>[dbusmenuUtils.js]"]
  node_desktop_icons["Desktop icons integration"]
  node_theming["Theme manager<br/>[theming.js]"]
  node_preferences["Preferences<br/>[prefs.js]"]
  node_settings_schema["Settings schema"]
end

node_shell(("GNOME Shell"))

node_shell -.->|"activates"| node_extension
node_extension -.->|"starts"| node_dock_manager
node_dock_manager -->|"creates"| node_intellihide
node_dock_manager -->|"creates"| node_theming
node_dock_manager -.->|"manages"| node_dash
node_dash -->|"creates"| node_app_icons
node_app_icons -->|"creates"| node_window_previews
node_app_icons -->|"creates"| node_indicators
node_indicators -->|"reads settings"| node_dock_manager
node_dock_manager -.->|"uses"| node_dock_struts
node_preferences -.->|"configures"| node_settings_schema
node_locations -.->|"uses"| node_file_manager_api

click node_extension "https://github.com/micheleg/dash-to-dock/blob/master/extension.js"
click node_dock_manager "https://github.com/micheleg/dash-to-dock/blob/master/docking.js"
click node_intellihide "https://github.com/micheleg/dash-to-dock/blob/master/intellihide.js"
click node_dock_struts "https://github.com/micheleg/dash-to-dock/blob/master/dockStruts.js"
click node_dash "https://github.com/micheleg/dash-to-dock/blob/master/dash.js"
click node_app_icons "https://github.com/micheleg/dash-to-dock/blob/master/appIcons.js"
click node_indicators "https://github.com/micheleg/dash-to-dock/blob/master/appIconIndicators.js"
click node_icon_decorators "https://github.com/micheleg/dash-to-dock/blob/master/appIconsDecorator.js"
click node_window_previews "https://github.com/micheleg/dash-to-dock/blob/master/windowPreview.js"
click node_app_spread "https://github.com/micheleg/dash-to-dock/blob/master/appSpread.js"
click node_locations "https://github.com/micheleg/dash-to-dock/blob/master/locations.js"
click node_file_manager_api "https://github.com/micheleg/dash-to-dock/blob/master/fileManager1API.js"
click node_launcher_api "https://github.com/micheleg/dash-to-dock/blob/master/launcherAPI.js"
click node_notifications "https://github.com/micheleg/dash-to-dock/blob/master/notificationsMonitor.js"
click node_dbus_menu "https://github.com/micheleg/dash-to-dock/blob/master/dbusmenuUtils.js"
click node_desktop_icons "https://github.com/micheleg/dash-to-dock/blob/master/desktopIconsIntegration.js"
click node_theming "https://github.com/micheleg/dash-to-dock/blob/master/theming.js"
click node_preferences "https://github.com/micheleg/dash-to-dock/blob/master/prefs.js"
click node_settings_schema "https://github.com/micheleg/dash-to-dock/blob/master/schemas/org.gnome.shell.extensions.dash-to-dock.gschema.xml"

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_extension,node_dock_manager,node_intellihide,node_dock_struts toneBlue
class node_dash,node_app_icons,node_indicators,node_icon_decorators toneAmber
class node_window_previews,node_app_spread,node_locations,node_file_manager_api,node_launcher_api toneMint
class node_notifications,node_dbus_menu,node_desktop_icons,node_theming,node_preferences,node_settings_schema toneRose
class node_shell toneIndigo
```

## Components

### Dock lifecycle

- [Extension entry](https://github.com/micheleg/dash-to-dock/blob/master/extension.js): `extension.js`
- [Dock manager](https://github.com/micheleg/dash-to-dock/blob/master/docking.js): `docking.js`
- [Intelligent hide](https://github.com/micheleg/dash-to-dock/blob/master/intellihide.js): `intellihide.js`
- [Dock struts](https://github.com/micheleg/dash-to-dock/blob/master/dockStruts.js): `dockStruts.js`

### Dock interface

- [Dock dash](https://github.com/micheleg/dash-to-dock/blob/master/dash.js): `dash.js`
- [Application icons](https://github.com/micheleg/dash-to-dock/blob/master/appIcons.js): `appIcons.js`
- [Icon indicators](https://github.com/micheleg/dash-to-dock/blob/master/appIconIndicators.js): `appIconIndicators.js`
- [Icon decorators](https://github.com/micheleg/dash-to-dock/blob/master/appIconsDecorator.js): `appIconsDecorator.js`

### Windows and apps

- [Window previews](https://github.com/micheleg/dash-to-dock/blob/master/windowPreview.js): `windowPreview.js`
- [App spread](https://github.com/micheleg/dash-to-dock/blob/master/appSpread.js): `appSpread.js`
- [Location apps](https://github.com/micheleg/dash-to-dock/blob/master/locations.js): `locations.js`
- [File manager API](https://github.com/micheleg/dash-to-dock/blob/master/fileManager1API.js): `fileManager1API.js`
- [Launcher API](https://github.com/micheleg/dash-to-dock/blob/master/launcherAPI.js): `launcherAPI.js`

### Dock services

- [Notifications monitor](https://github.com/micheleg/dash-to-dock/blob/master/notificationsMonitor.js): `notificationsMonitor.js`
- [DBus menus](https://github.com/micheleg/dash-to-dock/blob/master/dbusmenuUtils.js): `dbusmenuUtils.js`
- [Desktop icons integration](https://github.com/micheleg/dash-to-dock/blob/master/desktopIconsIntegration.js): `desktopIconsIntegration.js`
- [Theme manager](https://github.com/micheleg/dash-to-dock/blob/master/theming.js): `theming.js`
- [Preferences](https://github.com/micheleg/dash-to-dock/blob/master/prefs.js): `prefs.js`
- [Settings schema](https://github.com/micheleg/dash-to-dock/blob/master/schemas/org.gnome.shell.extensions.dash-to-dock.gschema.xml): `schemas/org.gnome.shell.extensions.dash-to-dock.gschema.xml`

### Other components

- **GNOME Shell**

## Connections

- GNOME Shell → Extension entry: activates
- Extension entry → Dock manager: starts (evidence: `extension.js`)
- Dock manager → Intelligent hide: creates (evidence: `docking.js`)
- Dock manager → Theme manager: creates (evidence: `docking.js`)
- Dock manager → Dock dash: manages
- Dock dash → Application icons: creates (evidence: `dash.js`)
- Application icons → Window previews: creates (evidence: `appIcons.js`)
- Application icons → Icon indicators: creates (evidence: `appIcons.js`)
- Icon indicators → Dock manager: reads settings (evidence: `appIconIndicators.js`)
- Dock manager → Dock struts: uses (evidence: `docking.js`)
- Preferences → Settings schema: configures
- Location apps → File manager API: uses
