SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)" WALLPAPER_DIR=$(scripts/install/wallpaper_dir.sh) copy_missing() { local dest="$1" local filename filename="$(basename "$dest")" local src="$SCRIPT_DIR/examples/$filename.example" if [ -e "$dest" ]; then echo "Already exists: $dest" else echo "Creating: $dest" cp "$src" "$dest" fi } if [ ! -d "$SCRIPT_DIR/user_config" ]; then mkdir "$SCRIPT_DIR/user_config" echo "$SCRIPT_DIR/user_config created" else echo "$SCRIPT_DIR/user_config exists" fi copy_missing "$SCRIPT_DIR/user_config/monitor.conf" copy_missing "$SCRIPT_DIR/user_config/input.conf" copy_missing "$SCRIPT_DIR/user_config/workspace.conf" copy_missing "$SCRIPT_DIR/scripts/autostart/workspace" copy_missing "$SCRIPT_DIR/user_config/bind.conf" copy_missing "$SCRIPT_DIR/user_config/input.conf" copy_missing "$SCRIPT_DIR/hyprlock.conf" copy_missing "$SCRIPT_DIR/hyprpaper.conf" copy_missing "$SCRIPT_DIR/config/autostart.conf" echo "The script will now install dependencies via pacman" sudo pacman -S --needed hyprland-qt-support hyprcursor hypridle hyprlock hypridle