Allow the user to clone simple-hyprland anywhere
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Get the directory of the current script
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
BASE_DIR=$(realpath "$(dirname "${BASH_SOURCE[0]}")/../../")
|
||||
|
||||
# Source helper file
|
||||
source $SCRIPT_DIR/helper.sh
|
||||
source $BASE_DIR/scripts/installer/helper.sh
|
||||
|
||||
log_message "Final setup script started"
|
||||
print_bold_blue "\nCongratulations! Your Simple Hyprland setup is complete!"
|
||||
|
||||
@@ -9,10 +9,10 @@ BOLD='\033[1m'
|
||||
NC='\033[0m' # No Color
|
||||
|
||||
# Get the directory of the current script
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
BASE_DIR=$(realpath "$(dirname "${BASH_SOURCE[0]}")/../../")
|
||||
|
||||
# Log file
|
||||
LOG_FILE="$SCRIPT_DIR/simple_hyprland_install.log"
|
||||
LOG_FILE="$BASE_DIR/scripts/installer/simple_hyprland_install.log"
|
||||
|
||||
function trap_message {
|
||||
print_error "\n\nScript interrupted. Exiting.....\n"
|
||||
@@ -114,7 +114,7 @@ function run_command {
|
||||
|
||||
# Function to run a script with retry and confirmation
|
||||
function run_script {
|
||||
local script="$SCRIPT_DIR/$1"
|
||||
local script="$BASE_DIR/scripts/installer/$1"
|
||||
local description="$2"
|
||||
if ask_confirmation "\nExecute '$description' script"; then
|
||||
while ! bash "$script"; do
|
||||
|
||||
@@ -1,24 +1,24 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Get the directory of the current script
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
BASE_DIR=$(realpath "$(dirname "${BASH_SOURCE[0]}")/../../")
|
||||
|
||||
# Source helper file
|
||||
source $SCRIPT_DIR/helper.sh
|
||||
source $BASE_DIR/scripts/installer/helper.sh
|
||||
|
||||
log_message "Installation started for hypr section"
|
||||
print_info "\nStarting hypr setup..."
|
||||
print_info "\nEverything is recommended to INSTALL"
|
||||
|
||||
run_command "pacman -S --noconfirm hyprland" "Install Hyprland (Must)" "yes"
|
||||
run_command "mkdir -p /home/$SUDO_USER/.config/hypr/ && cp -r /home/$SUDO_USER/simple-hyprland/configs/hypr/hyprland.conf /home/$SUDO_USER/.config/hypr/" "Copy hyprland config (Must)" "yes" "no"
|
||||
run_command "mkdir -p /home/$SUDO_USER/.config/hypr/ && cp -r $BASE_DIR/configs/hypr/hyprland.conf /home/$SUDO_USER/.config/hypr/" "Copy hyprland config (Must)" "yes" "no"
|
||||
|
||||
run_command "pacman -S --noconfirm xdg-desktop-portal-hyprland" "Install XDG desktop portal for Hyprland" "yes"
|
||||
|
||||
run_command "pacman -S --noconfirm polkit-kde-agent" "Install KDE Polkit agent for authentication dialogs" "yes"
|
||||
|
||||
run_command "pacman -S --noconfirm dunst" "Install Dunst notification daemon" "yes"
|
||||
run_command "cp -r /home/$SUDO_USER/simple-hyprland/configs/dunst /home/$SUDO_USER/.config/" "Copy dunst config" "yes" "no"
|
||||
run_command "cp -r $BASE_DIR/configs/dunst /home/$SUDO_USER/.config/" "Copy dunst config" "yes" "no"
|
||||
|
||||
run_command "pacman -S --noconfirm qt5-wayland qt6-wayland" "Install QT support on wayland" "yes"
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Get the directory of the current script
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
BASE_DIR=$(realpath "$(dirname "${BASH_SOURCE[0]}")/../../")
|
||||
|
||||
# Source helper file
|
||||
source $SCRIPT_DIR/helper.sh
|
||||
source $BASE_DIR/scripts/installer/helper.sh
|
||||
|
||||
# Trap for unexpected exits
|
||||
trap 'trap_message' INT TERM
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Get the directory of the current script
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
BASE_DIR=$(realpath "$(dirname "${BASH_SOURCE[0]}")/../../")
|
||||
|
||||
# Source helper file
|
||||
source $SCRIPT_DIR/helper.sh
|
||||
source $BASE_DIR/scripts/installer/helper.sh
|
||||
|
||||
log_message "Installation started for prerequisites section"
|
||||
print_info "\nStarting prerequisites setup..."
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Get the directory of the current script
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
BASE_DIR=$(realpath "$(dirname "${BASH_SOURCE[0]}")/../../")
|
||||
|
||||
# Source helper file
|
||||
source $SCRIPT_DIR/helper.sh
|
||||
source $BASE_DIR/scripts/installer/helper.sh
|
||||
|
||||
log_message "Installation started for theming section"
|
||||
print_info "\nStarting theming setup..."
|
||||
@@ -13,13 +13,13 @@ run_command "pacman -S --noconfirm nwg-look" "Install nwg-look for GTK theme man
|
||||
|
||||
run_command "pacman -S --noconfirm qt5ct qt6ct kvantum" "Install Qt5, Qt6 Settings, and Kvantum theme engines" "yes"
|
||||
|
||||
run_command "tar -xvf /home/$SUDO_USER/simple-hyprland/assets/themes/Catppuccin-Mocha.tar.xz -C /usr/share/themes/" "Install Catppuccin Mocha GTK theme" "yes"
|
||||
run_command "tar -xvf $BASE_DIR/assets/themes/Catppuccin-Mocha.tar.xz -C /usr/share/themes/" "Install Catppuccin Mocha GTK theme" "yes"
|
||||
|
||||
run_command "tar -xvf /home/$SUDO_USER/simple-hyprland/assets/icons/Tela-circle-dracula.tar.xz -C /usr/share/icons/" "Install Tela Circle Dracula icon theme" "yes"
|
||||
run_command "tar -xvf $BASE_DIR/assets/icons/Tela-circle-dracula.tar.xz -C /usr/share/icons/" "Install Tela Circle Dracula icon theme" "yes"
|
||||
|
||||
run_command "yay -S --sudoloop --noconfirm kvantum-theme-catppuccin-git" "Install Catppuccin theme for Kvantum" "yes" "no"
|
||||
|
||||
run_command "cp -r /home/$SUDO_USER/simple-hyprland/configs/kitty /home/$SUDO_USER/.config/" "Copy Catppuccin theme configuration for Kitty terminal" "yes" "no"
|
||||
run_command "cp -r $BASE_DIR/configs/kitty /home/$SUDO_USER/.config/" "Copy Catppuccin theme configuration for Kitty terminal" "yes" "no"
|
||||
|
||||
# Add instructions to configure theming
|
||||
print_info "\nPost-installation instructions:"
|
||||
|
||||
@@ -1,36 +1,36 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Get the directory of the current script
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
BASE_DIR=$(realpath "$(dirname "${BASH_SOURCE[0]}")/../../")
|
||||
|
||||
# Source helper file
|
||||
source $SCRIPT_DIR/helper.sh
|
||||
source $BASE_DIR/scripts/installer/helper.sh
|
||||
|
||||
log_message "Installation started for utilities section"
|
||||
print_info "\nStarting utilities setup..."
|
||||
|
||||
run_command "pacman -S --noconfirm waybar" "Install Waybar - Status Bar" "yes"
|
||||
run_command "cp -r /home/$SUDO_USER/simple-hyprland/configs/waybar /home/$SUDO_USER/.config/" "Copy Waybar config" "yes" "no"
|
||||
run_command "cp -r $BASE_DIR/configs/waybar /home/$SUDO_USER/.config/" "Copy Waybar config" "yes" "no"
|
||||
|
||||
run_command "yay -S --sudoloop --noconfirm tofi" "Install Tofi - Application Launcher" "yes" "no"
|
||||
run_command "cp -r /home/$SUDO_USER/simple-hyprland/configs/tofi /home/$SUDO_USER/.config/" "Copy Tofi config(s)" "yes" "no"
|
||||
run_command "cp -r $BASE_DIR/configs/tofi /home/$SUDO_USER/.config/" "Copy Tofi config(s)" "yes" "no"
|
||||
|
||||
run_command "pacman -S --noconfirm cliphist" "Install Cliphist - Clipboard Manager" "yes"
|
||||
|
||||
run_command "yay -S --sudoloop --noconfirm swww" "Install SWWW for wallpaper management" "yes" "no"
|
||||
run_command "mkdir -p /home/$SUDO_USER/.config/assets/backgrounds && cp -r /home/$SUDO_USER/simple-hyprland/assets/backgrounds /home/$SUDO_USER/.config/assets/" "Copy sample wallpapers to assets directory (Recommended)" "yes" "no"
|
||||
run_command "mkdir -p /home/$SUDO_USER/.config/assets/backgrounds && cp -r $BASE_DIR/assets/backgrounds /home/$SUDO_USER/.config/assets/" "Copy sample wallpapers to assets directory (Recommended)" "yes" "no"
|
||||
|
||||
run_command "yay -S --sudoloop --noconfirm hyprpicker" "Install Hyprpicker - Color Picker" "yes" "no"
|
||||
|
||||
run_command "yay -S --sudoloop --noconfirm hyprlock" "Install Hyprlock - Screen Locker (Must)" "yes" "no"
|
||||
run_command "cp -r /home/$SUDO_USER/simple-hyprland/configs/hypr/hyprlock.conf /home/$SUDO_USER/.config/hypr/" "Copy Hyprlock config" "yes" "no"
|
||||
run_command "cp -r $BASE_DIR/configs/hypr/hyprlock.conf /home/$SUDO_USER/.config/hypr/" "Copy Hyprlock config" "yes" "no"
|
||||
|
||||
run_command "yay -S --sudoloop --noconfirm wlogout" "Install Wlogout - Session Manager" "yes" "no"
|
||||
run_command "cp -r /home/$SUDO_USER/simple-hyprland/configs/wlogout /home/$SUDO_USER/.config/ && cp -r /home/$SUDO_USER/simple-hyprland/assets/wlogout /home/$SUDO_USER/.config/assets/" "Copy Wlogout config and assets" "yes" "no"
|
||||
run_command "cp -r $BASE_DIR/configs/wlogout /home/$SUDO_USER/.config/ && cp -r $BASE_DIR/assets/wlogout /home/$SUDO_USER/.config/assets/" "Copy Wlogout config and assets" "yes" "no"
|
||||
|
||||
run_command "yay -S --sudoloop --noconfirm grimblast" "Install Grimblast - Screenshot tool" "yes" "no"
|
||||
|
||||
run_command "yay -S --sudoloop --noconfirm hypridle" "Install Hypridle for idle management (Must)" "yes" "no"
|
||||
run_command "cp -r /home/$SUDO_USER/simple-hyprland/configs/hypr/hypridle.conf /home/$SUDO_USER/.config/hypr/" "Copy Hypridle config" "yes" "no"
|
||||
run_command "cp -r $BASE_DIR/configs/hypr/hypridle.conf /home/$SUDO_USER/.config/hypr/" "Copy Hypridle config" "yes" "no"
|
||||
|
||||
echo "------------------------------------------------------------------------"
|
||||
Reference in New Issue
Block a user