Allow the user to clone simple-hyprland anywhere
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user