better structure

This commit is contained in:
Gaurav Bankar
2024-08-07 09:14:10 +05:30
parent dbca84c523
commit 19557dc2a5
7 changed files with 0 additions and 0 deletions

31
scripts/installer/install.sh Executable file
View File

@@ -0,0 +1,31 @@
#!/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"