#!/bin/bash set -euo pipefail SETUP_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" PACKAGES_FILE="$SETUP_DIR/packages.txt" # shellcheck source=../lib/common.sh source "$SETUP_DIR/../lib/common.sh" # --------------------------------------------------------------------------- # Post-install: run Hyprland environment & desktop integration scripts. # --------------------------------------------------------------------------- run_hypr_scripts() { local scripts_dir scripts_dir="$(repo_root)/hypr/.config/hypr/scripts" echo "==> Fuehre ensure-env.sh aus ..." bash "$scripts_dir/ensure-env.sh" echo "==> Fuehre portal-host-override.sh aus ..." bash "$scripts_dir/portal-host-override.sh" echo "==> Fuehre fix_dolphin_file_associations.sh aus ..." bash "$scripts_dir/fix_dolphin_file_associations.sh" } # --------------------------------------------------------------------------- # Main # --------------------------------------------------------------------------- main() { local -a pacman_pkgs=() aur_pkgs=() npm_pkgs=() echo "==> Lese Paketliste: $PACKAGES_FILE" read_packages "$PACKAGES_FILE" pacman_pkgs aur_pkgs npm_pkgs install_all_pkgs pacman_pkgs aur_pkgs npm_pkgs run_hypr_scripts echo "Fertig. Hyprland und das Compositor-Okosystem sind eingerichtet." } main