Files
simple-hyprland/scripts/installer/install.sh
2024-08-07 09:14:10 +05:30

32 lines
784 B
Bash
Executable File

#!/bin/bash
# Get the directory of the current script
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Source helper file
source $SCRIPT_DIR/helper.sh
# Trap for unexpected exits
trap 'trap_message' INT TERM
# Script start
log_message "Installation started"
print_bold_blue "\nSimple Hyprland"
echo "---------------"
# Check if running as root
check_root
# Check if OS is Arch Linux
check_os
# Run child scripts
run_script "prerequisites.sh" "Prerequisites Setup"
run_script "hypr.sh" "Hyprland & Critical Softwares Setup"
run_script "utilities.sh" "Basic Utilities & Configs Setup"
run_script "theming.sh" "Themes and Tools Setup"
run_script "final.sh" "Final Setup"
print_bold_blue "\n🌟 Setup Complete\n"
log_message "Installation completed successfully"