diff --git a/install-scripts/quickshell.sh b/install-scripts/quickshell.sh new file mode 100755 index 0000000..0d9d779 --- /dev/null +++ b/install-scripts/quickshell.sh @@ -0,0 +1,44 @@ +#!/bin/bash +# 💫 https://github.com/JaKooLit 💫 # + +COPR_QUICK="errornointernet/quickshell" + +quick=( + quickshell +) + +## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ## +SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +# Change the working directory to the parent directory of the script +PARENT_DIR="$SCRIPT_DIR/.." +cd "$PARENT_DIR" || { echo "${ERROR} Failed to change directory to $PARENT_DIR"; exit 1; } + +# Source the global functions script +if ! source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"; then + echo "Failed to source Global_functions.sh" + exit 1 +fi + +# Set the name of the log file to include the current date and time +LOG="Install-Logs/install-$(date +%d-%H%M%S)_qshell.log" + +# Enable quickshell COPR Repositories +printf "\n%s - Adding ${SKY_BLUE}Quickshell COPR repo${RESET} \n" "${NOTE}" + +for repo in "$COPR_QUICK"; do + sudo dnf copr enable -y "$repo" 2>&1 | tee -a "$LOG" || { printf "%s - Failed to enable quickshell copr repo\n" "${ERROR}"; exit 1; } +done + +printf "\n%.0s" {1..1} + +# Installation of main components +printf "\n%s - Installing ${SKY_BLUE}Quickshell for Desktop Overview${RESET} \n" "${NOTE}" + +# Install quickshell +echo -e "\n${NOTE} - Installing ${SKY_BLUE}Quickshell for Desktop Overview${RESET}" +for pkg in "${quick[@]}"; do + install_package "$pkg" "$LOG" +done + +printf "\n%.0s" {1..1} \ No newline at end of file diff --git a/install.sh b/install.sh index bc5a197..6d91b43 100755 --- a/install.sh +++ b/install.sh @@ -103,7 +103,7 @@ execute_script() { gtk_themes="OFF" bluetooth="OFF" thunar="OFF" -ags="OFF" +quickshell="OFF" sddm="OFF" sddm_theme="OFF" xdph="OFF" @@ -202,7 +202,7 @@ options_command+=( "gtk_themes" "Install GTK themes (required for Dark/Light function)" "OFF" "bluetooth" "Do you want script to configure Bluetooth?" "OFF" "thunar" "Do you want Thunar file manager to be installed?" "OFF" - "ags" "Install AGS v1 for Desktop-Like Overview" "OFF" + "quickshell" "Install quickshell for Desktop-Like Overview" "OFF" "xdph" "Install XDG-DESKTOP-PORTAL-HYPRLAND (for screen share)?" "OFF" "zsh" "Install zsh shell with Oh-My-Zsh?" "OFF" "pokemon" "Add Pokemon color scripts to your terminal?" "OFF" @@ -324,9 +324,9 @@ for option in "${options[@]}"; do echo "${INFO} Adding user into ${SKY_BLUE}input group...${RESET}" | tee -a "$LOG" execute_script "InputGroup.sh" ;; - ags) - echo "${INFO} Installing ${SKY_BLUE}AGS v1 for Desktop Overview...${RESET}" | tee -a "$LOG" - execute_script "ags.sh" + quickshell) + echo "${INFO} Installing ${SKY_BLUE}quickshell for Desktop Overview...${RESET}" | tee -a "$LOG" + execute_script "quickshell.sh" ;; xdph) echo "${INFO} Installing ${SKY_BLUE}xdg-desktop-portal-hyprland...${RESET}" | tee -a "$LOG"