From a66845607dfaf52607a51b6dcefc68745c814a68 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Thu, 6 Feb 2025 22:36:28 +0900 Subject: [PATCH] updated README .. will updated the Installation picture later --- README.md | 25 +++++++++++++++++++------ install.sh | 25 ++++++++++++------------- preset.sh | 9 ++++----- 3 files changed, 35 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index 4b3bf75..97b82a6 100644 --- a/README.md +++ b/README.md @@ -119,12 +119,7 @@ https://github.com/user-attachments/assets/49bc12b2-abaf-45de-a21c-67aacd9bb872 - After installation, check [`THIS`](https://github.com/JaKooLit/Hyprland-Dots/wiki/Notes_to_remember#--for-nvidia-gpu-users) ## ✨ to use this script -> clone this repo (latest commit only) to reduce file size download by using git. Change directory, make executable and run the script - ->[!IMPORTANT] -> Make sure you have base-devel installed - -- Without base-devel installed, script will fail +- clone this repo (latest commit only) to reduce file size download by using git. Change directory, make executable and run the script ```bash git clone --depth=1 https://github.com/JaKooLit/Arch-Hyprland.git ~/Arch-Hyprland @@ -136,6 +131,24 @@ chmod +x install.sh

+ +## 🤟 semi-unattended installation (new for 2025) +- edit preset.sh to modify what packages you want. Make sure to change only with Y or N +- to use preset instead of usual `./install.sh` you can + +```bash +./install.sh --preset +``` + +- if you have nvidia you can add --nvidia argument + +```bash +./install.sh --preset --nvidia +``` + +- its called semi-unattended is because you still have to answer some questions when installing KooL's Hyprland Dots + + #### ✨ for ZSH and OH-MY-ZSH installation > installer should auto change your default shell to zsh. However, if it does not, do this ```bash diff --git a/install.sh b/install.sh index 9d26110..925c37b 100755 --- a/install.sh +++ b/install.sh @@ -27,6 +27,18 @@ if [[ $EUID -eq 0 ]]; then exit 1 fi +# Check if --preset argument is provided +if [[ "$1" == "--preset" ]]; then + + # nvidia + if [[ "$2" == "--nvidia" ]]; then + sed -i 's/^nvidia=".*"/nvidia="Y"/' preset.sh + sed -i 's/^nouveau=".*"/nouveau="Y"/' preset.sh + fi + + source ./preset.sh +fi + # Check if PulseAudio package is installed if pacman -Qq | grep -qw '^pulseaudio$'; then echo "$ERROR PulseAudio is detected as installed. Uninstall it first or edit install.sh on line 211 (execute_script 'pipewire.sh')." @@ -87,19 +99,6 @@ if ! pacman -Qs pciutils > /dev/null; then printf "\n%.0s" {1..1} fi - -echo "${WARNING}ATTENTION: Choosing Y on use preset question will install also ${MAGENTA}nvidia packages!!!${RESET}" -echo "${YELLOW}CTRL C or Q to cancel and edit the file ${MAGENTA}preset.sh${RESET} ${RESET}" -echo "If you are not sure what to do, answer N in here" -read -p "${SKY_BLUE}Would you like to Use ${YELLOW}Preset Install Settings?${RESET} (See note above)? (y/n): ${RESET}" use_preset - -# Use of Preset Settings -if [[ $use_preset = [Yy] ]]; then - source ./preset.sh -fi - -printf "\n%.0s" {1..1} - # Function to colorize prompts colorize_prompt() { local color="$1" diff --git a/preset.sh b/preset.sh index 8438535..9e747c1 100644 --- a/preset.sh +++ b/preset.sh @@ -2,13 +2,12 @@ # CREDIT to: https://github.com/PostCyberPunk for this Preset function ## -- Make sure you use the right answer or install script will fail ### -# Make sure proper AUR Helper is use NO Upperscript. Either paru or yay only is accepted # The rest Change to Y for Yes and N for No. ###-Configure NVIDIA -nvidia="Y" +nvidia="N" ### Would you like to blacklist nouveau? (y/n) -nouveau="Y" +nouveau="N" ### yay or paru aur_helper="yay" @@ -25,7 +24,7 @@ thunar="Y" thunar_choice="Y" -### " Adding user to the 'input' group might be necessary for waybar keyboard-state functionality." +### Adding user to the 'input' group might be necessary for waybar keyboard-state functionality input_group="Y" ### Install AGS (aylur's GTK shell) v1 for Desktop-Like Overview?" @@ -41,7 +40,7 @@ xdph="Y" ###-Install zsh, oh-my-zsh zsh="Y" -### add Pokemon color scripts to terminal (y/n): +### add Pokemon color scripts to terminal pokemon_choice="Y" ###-Installing on Asus ROG Laptops?