# kishore-3101/sway-config architecture

> Architecture diagram of the GitHub repository kishore-3101/sway-config, 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/kishore-3101/sway-config
- Repository: https://github.com/kishore-3101/sway-config

## Overview

This repository is a configuration bundle for a lightweight Wayland desktop centered on Sway. The user configures and operates the session through Sway keybindings: launching applications, managing windows and workspaces, and invoking system controls, screenshots, and recordings. Supporting configurations provide the terminal, launcher, notifications, and status bar; Sway scripts cover caffeine, connectivity toggles, and idle startup. The README documents these capabilities and some relationships, but no source excerpts were provided, so links between components are limited to documented behavior.

Main entry points: [`sway/config`](https://github.com/kishore-3101/sway-config/blob/main/sway/config) (Sway session), [`waybar/config`](https://github.com/kishore-3101/sway-config/blob/main/waybar/config) (Waybar status bar), [`sway/scripts/caffeine_status.sh`](https://github.com/kishore-3101/sway-config/blob/main/sway/scripts/caffeine_status.sh) (Caffeine status), [`sway/scripts/start_idle.sh`](https://github.com/kishore-3101/sway-config/blob/main/sway/scripts/start_idle.sh) (Idle startup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_session["Session and controls"]
  node_sway["Sway session"]
  node_caffeine["Caffeine toggle<br/>[caffeine.sh]"]
  node_caffeine_status["Caffeine status<br/>[caffeine_status.sh]"]
  node_wifi["Wi-Fi toggle<br/>[wifi_toggle.sh]"]
  node_bluetooth["Bluetooth toggle"]
  node_idle["Idle startup<br/>[start_idle.sh]"]
end

subgraph group_desktop["Desktop applications"]
  node_terminal["Alacritty terminal<br/>[alacritty.toml]"]
  node_launcher["Rofi launcher<br/>[theme.rasi]"]
  node_notifications["Mako notifications"]
end

subgraph group_status["Status and appearance"]
  node_waybar["Waybar status bar"]
  node_workspace["Workspace helper<br/>[new_workspace.sh]"]
  node_waybar_style["Waybar styling<br/>[style.css]"]
  node_wallpaper["Wallpaper"]
end

node_user(("Desktop user"))
node_system{{"Wayland system services"}}

node_user -->|"operates"| node_sway
node_sway -->|"launches"| node_terminal
node_sway -->|"launches"| node_launcher
node_sway -->|"toggles"| node_caffeine
node_sway -->|"toggles"| node_wifi
node_sway -->|"toggles"| node_bluetooth
node_sway -->|"integrates"| node_waybar
node_sway -->|"uses"| node_notifications
node_sway -->|"controls"| node_system
node_caffeine_status -.->|"reports status"| node_waybar
node_waybar -.->|"uses"| node_workspace
node_waybar -.->|"styled by"| node_waybar_style
node_sway -.->|"displays"| node_wallpaper
node_idle -.->|"starts idle handling"| node_system

click node_sway "https://github.com/kishore-3101/sway-config/blob/main/sway/config"
click node_caffeine "https://github.com/kishore-3101/sway-config/blob/main/sway/scripts/caffeine.sh"
click node_caffeine_status "https://github.com/kishore-3101/sway-config/blob/main/sway/scripts/caffeine_status.sh"
click node_wifi "https://github.com/kishore-3101/sway-config/blob/main/sway/scripts/wifi_toggle.sh"
click node_bluetooth "https://github.com/kishore-3101/sway-config/blob/main/sway/scripts/bluetooth_toggle.sh"
click node_idle "https://github.com/kishore-3101/sway-config/blob/main/sway/scripts/start_idle.sh"
click node_terminal "https://github.com/kishore-3101/sway-config/blob/main/alacritty/alacritty.toml"
click node_launcher "https://github.com/kishore-3101/sway-config/blob/main/rofi/theme.rasi"
click node_notifications "https://github.com/kishore-3101/sway-config/blob/main/mako/config"
click node_waybar "https://github.com/kishore-3101/sway-config/blob/main/waybar/config"
click node_workspace "https://github.com/kishore-3101/sway-config/blob/main/waybar/scripts/new_workspace.sh"
click node_waybar_style "https://github.com/kishore-3101/sway-config/blob/main/waybar/style.css"
click node_wallpaper "https://github.com/kishore-3101/sway-config/tree/main/wallpaper"

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_sway,node_caffeine,node_caffeine_status,node_wifi,node_bluetooth,node_idle,node_user toneBlue
class node_terminal,node_launcher,node_notifications toneAmber
class node_waybar,node_workspace,node_waybar_style,node_wallpaper toneMint
class node_system toneIndigo
```

## Components

### Session and controls

- [Sway session](https://github.com/kishore-3101/sway-config/blob/main/sway/config): `sway/config`
- [Caffeine toggle](https://github.com/kishore-3101/sway-config/blob/main/sway/scripts/caffeine.sh): `sway/scripts/caffeine.sh`
- [Caffeine status](https://github.com/kishore-3101/sway-config/blob/main/sway/scripts/caffeine_status.sh): `sway/scripts/caffeine_status.sh`
- [Wi-Fi toggle](https://github.com/kishore-3101/sway-config/blob/main/sway/scripts/wifi_toggle.sh): `sway/scripts/wifi_toggle.sh`
- [Bluetooth toggle](https://github.com/kishore-3101/sway-config/blob/main/sway/scripts/bluetooth_toggle.sh): `sway/scripts/bluetooth_toggle.sh`
- [Idle startup](https://github.com/kishore-3101/sway-config/blob/main/sway/scripts/start_idle.sh): `sway/scripts/start_idle.sh`

### Desktop applications

- [Alacritty terminal](https://github.com/kishore-3101/sway-config/blob/main/alacritty/alacritty.toml): `alacritty/alacritty.toml`
- [Rofi launcher](https://github.com/kishore-3101/sway-config/blob/main/rofi/theme.rasi): `rofi/theme.rasi`
- [Mako notifications](https://github.com/kishore-3101/sway-config/blob/main/mako/config): `mako/config`

### Status and appearance

- [Waybar status bar](https://github.com/kishore-3101/sway-config/blob/main/waybar/config): `waybar/config`
- [Workspace helper](https://github.com/kishore-3101/sway-config/blob/main/waybar/scripts/new_workspace.sh): `waybar/scripts/new_workspace.sh`
- [Waybar styling](https://github.com/kishore-3101/sway-config/blob/main/waybar/style.css): `waybar/style.css`
- [Wallpaper](https://github.com/kishore-3101/sway-config/tree/main/wallpaper): `wallpaper`

### Other components

- **Desktop user**
- **Wayland system services**

## Connections

- Desktop user → Sway session: operates (evidence: `README.md`)
- Sway session → Alacritty terminal: launches (evidence: `README.md`)
- Sway session → Rofi launcher: launches (evidence: `README.md`)
- Sway session → Caffeine toggle: toggles (evidence: `README.md`)
- Sway session → Wi-Fi toggle: toggles (evidence: `README.md`)
- Sway session → Bluetooth toggle: toggles (evidence: `README.md`)
- Sway session → Waybar status bar: integrates (evidence: `README.md`)
- Sway session → Mako notifications: uses (evidence: `README.md`)
- Sway session → Wayland system services: controls (evidence: `README.md`)
- Caffeine status → Waybar status bar: reports status
- Waybar status bar → Workspace helper: uses
- Waybar status bar → Waybar styling: styled by
- Sway session → Wallpaper: displays
- Idle startup → Wayland system services: starts idle handling
