Commit b249419

Ansari <ping@ansari.wtf>
2025-12-31 02:21:47
add arch-boot.sh and arch-hypr.sh scripts for Arch Linux installation and Hyprland setup; update scripts.json with descriptions
1 parent 6eefee7
arch/install.sh → arch-boot.sh
File renamed without changes
arch/post-install.sh → arch-hypr.sh
@@ -168,7 +168,7 @@ yay_setup(){
 
 media_setup(){
     log_info "Setting up Media Applications"
-    execute_step "sudo pacman -S --needed ${MEDIA_STACK[@]}" "Installing Media Stack Packages"
+    execute_step "sudo pacman -S --needed ${MEDIA_STACK[*]}" "Installing Media Stack Packages"
     log_info "Media Applications setup completed"
 
     log_info "Setting up audio with PipeWire"
@@ -180,7 +180,7 @@ media_setup(){
 
 session_setup(){
     log_info "Setting up Session Manager (SDDM)"
-    execute_step "sudo pacman -S --needed ${SESSION_STACK[@]}" "Installing Session Stack Packages"
+    execute_step "sudo pacman -S --needed ${SESSION_STACK[*]}" "Installing Session Stack Packages"
     execute_step "git clone -b wraith https://github.com/The-Robin-Hood/SilentSDDM" "Cloning Wraith SDDM"
     execute_step "sudo mkdir -p /usr/share/sddm/themes/wraith" "Creating SDDM folder"
     execute_step "sudo cp -r SilentSDDM/* /usr/share/sddm/themes/wraith/" "Moving files"
@@ -214,15 +214,15 @@ main(){
     
     yay_setup
     
-    execute_step "yay -Syu --noconfirm" "Updating System Packages"
-    execute_step "yay -S --noconfirm ${PRE_INSTALLED_PKGS[@]}" "Checking Pre-installed Packages"
-    execute_step "yay -S --noconfirm ${FONTS_THEME[@]}" "Installing Fonts and Theme Packages"
-    execute_step "yay -S --noconfirm ${SECURITY[@]}" "Installing Security Packages"
-    execute_step "yay -S --noconfirm ${CLI_TOOLS[@]}" "Installing CLI Tools"
-    execute_step "yay -S --noconfirm ${NETWORK_REMOTE[@]}" "Installing Network and Remote Packages"
-    execute_step "yay -S --noconfirm ${CONTAINERS_VMS[@]}" "Installing Container and VM Packages"
-    execute_step "yay -S --noconfirm ${GUI_APPS[@]}" "Installing GUI Applications"
-    execute_step "yay -S --noconfirm ${HYPRLAND_STACK[@]}" "Installing Hyprland and related Packages"
+    execute_step "yay -Syu --noconfirm --needed" "Updating System Packages"
+    execute_step "yay -S --noconfirm --needed ${PRE_INSTALLED_PKGS[*]}" "Checking Pre-installed Packages"
+    execute_step "yay -S --noconfirm --needed ${FONTS_THEME[*]}" "Installing Fonts and Theme Packages"
+    execute_step "yay -S --noconfirm --needed ${SECURITY[*]}" "Installing Security Packages"
+    execute_step "yay -S --noconfirm --needed ${CLI_TOOLS[*]}" "Installing CLI Tools"
+    execute_step "yay -S --noconfirm --needed ${NETWORK_REMOTE[*]}" "Installing Network and Remote Packages"
+    execute_step "yay -S --noconfirm --needed ${CONTAINERS_VMS[*]}" "Installing Container and VM Packages"
+    execute_step "yay -S --noconfirm --needed ${GUI_APPS[*]}" "Installing GUI Applications"
+    execute_step "yay -S --noconfirm --needed ${HYPRLAND_STACK[*]}" "Installing Hyprland and related Packages"
 
     media_setup
     session_setup
@@ -230,3 +230,5 @@ main(){
 
     execute_step "swww img .assets/wallpapers/gwen-stacy.jpg --transition-fps=60 --transition-type=wipe" "Configuring Wallpaper" 
 }
+
+main
\ No newline at end of file
scripts.json
@@ -13,12 +13,24 @@
     {
         "id":"002",
         "language":"shell",
-        "filename":"arch/install.sh",
+        "filename":"arch-boot.sh",
         "title":"Arch Linux Bootstrap",
         "description":[
             "This script automates the installation of Arch Linux with a Btrfs filesystem, including subvolume setup, base system install, and bootloader configuration.",
             "It guides you through input prompts (disk, username, timezone, etc.) and logs all actions and output for troubleshooting.",
-            "After installation, it creates and runs a chroot script that finalizes system settings, users, and essential services like SSH and NetworkManager."
+            "After installation, it creates and runs a chroot script that finalizes system settings, users, and essential services like SSH and NetworkManager.",
+            "Note: Prior to running this script, ensure to run `pacman -Sy` to update the package database."
+        ]
+    },
+    {
+        "id":"003",
+        "language":"shell",
+        "filename": "arch-hypr.sh",
+        "title": "Arch Linux Hyprland Setup",
+        "description": [
+            "This script is extended from the Arch Linux Bootstrap script to set up a Hyprland desktop environment along with customized configurations ie. themes, wallpapers, and application settings.",
+            "It includes setting up all necessary packages for Hyprland, configuring SDDM as the display manager, and applying user-specific customizations for a polished desktop experience.",
+            "This  clones my personal dotfiles repository to apply my preferred configurations and themes."
         ]
     }
 ]
\ No newline at end of file