How hyde-project/hyde works
Project type and purpose
• This is an open‑source, script‑driven “dotfiles” and system‑provisioning tool (HyDE) for Arch‑based Linux distros.
• It automates installation of packages, theming, window manager (Hyprland) configuration, GTK/Qt theming, SDDM/GRUB tweaks, and dotfile deployment.
Main components
a. User Environment (target machine running Arch Linux or Arch‐based distro)
b. CLI Installer (Scripts/install.sh, global_fn.sh, install_*.sh)
c. Script Library (.local/lib/hyde – shell functions, Python modules under pyutils)
d. Configuration Store
– Raw configs in Configs/ and Source/assets
– Backups in ~/.config/cfg_backups
e. Package Manager & Repositories
– pacman and AUR (via install_aur.sh)
– Remote GitHub repos: HyDE core, hyde‑themes, hyde‑gallery
f. Desktop Components
– Hyprland (Wayland compositor)
– SDDM (display manager)
– Rofi, Waybar, Wlogout, GTK/Qt theming engines
g. External Services
– GitHub (source), Discord badges, star‑history API
Relationships and interactions
• User → invokes install.sh with optional pkg_user list
• install.sh → sources global_fn.sh → parses pkg lists (pkg_core.lst, pkg_extra.lst) → calls pacman/AUR helper
• install.sh → calls restore_cfg.sh to copy configs into ~/.config and ~/.local/share
• Script library (shell + Python) provides helpers: configuration parsing, logging, theme patching
• Theme patcher → clones hyde‑themes → applies theme files to Configs/ and Source/assets → final config in ~/.config
• Desktop components load their configs from ~/.config on login
• Backup scripts save any overwritten configs to ~/.config/cfg_backups
Architectural patterns & design principles
• Modular scripts + shared library (separation of concerns)
• Declarative config lists (pkg_*.lst) drive package installation
• File‑system as the “data store” (no central DB)
• External repos for extensibility (themes, gallery)