diff --git a/README.md b/README.md index 16f4100..c6fb4ea 100644 --- a/README.md +++ b/README.md @@ -146,6 +146,10 @@ ninja -C build sudo ninja -C build install ``` +### 🤬 FAQ +#### Most common question I got is, Hey Ja, Why the heck it is taking long time to install? Other distro like Arch its only a minute or two. Why here takes like forever?!?!?! +- Well, most of the core packages are downloaded and Build and compiled from SOURCE. There are no pre-built binary (yet) for Debian and Ubuntu. Unlike Other distros, they already have prepacked binary that can just download and install. + ### 🛣️ Roadmap: - [ ] Install zsh and oh-my-zsh without necessary steps above - [ ] possibly adding gruvbox themes, cursors, icons diff --git a/install-scripts/hyprland.sh b/install-scripts/hyprland.sh index 7a242a9..3012af7 100644 --- a/install-scripts/hyprland.sh +++ b/install-scripts/hyprland.sh @@ -15,18 +15,25 @@ LOG="install-$(date +%d-%H%M%S)_hyprland.log" # Clone, build, and install Hyprland using Cmake printf "${NOTE} Cloning Hyprland...\n" + +# Check if Hyprland folder exists and remove it +if [ -d "Hyprland" ]; then + printf "${NOTE} Removing existing Hyprland folder...\n" + rm -rf "Hyprland" 2>&1 | tee -a "$LOG" +fi + if git clone --recursive -b v0.32.3 "https://github.com/hyprwm/Hyprland" 2>&1 | tee -a "$LOG"; then - cd Hyprland || exit 1 + cd "Hyprland" || exit 1 make all 2>&1 | tee -a "$LOG" if sudo make install 2>&1 | tee -a "$LOG"; then printf "${OK} Hyprland installed successfully.\n" else echo -e "${ERROR} Installation failed for Hyprland." fi - # Return to the previous directory cd .. else echo -e "${ERROR} Download failed for Hyprland." fi clear + diff --git a/install-scripts/nvidia.sh b/install-scripts/nvidia.sh index e2f9b9f..689497b 100644 --- a/install-scripts/nvidia.sh +++ b/install-scripts/nvidia.sh @@ -82,6 +82,13 @@ add_to_file() { # Clone, build, and install nvidia-Hyprland using Cmake printf "${NOTE} Installing nvidia-Hyprland...\n" + +# Check if Hyprland folder exists and remove it +if [ -d "Hyprland" ]; then + printf "${NOTE} Removing existing Hyprland folder...\n" + rm -rf "Hyprland" 2>&1 | tee -a "$LOG" +fi + if git clone --recursive -b v0.32.3 "https://github.com/hyprwm/Hyprland" 2>&1 | tee -a "$LOG"; then cd Hyprland || exit 1 make all diff --git a/install-scripts/nwg-look.sh b/install-scripts/nwg-look.sh index 424380b..6b3635f 100644 --- a/install-scripts/nwg-look.sh +++ b/install-scripts/nwg-look.sh @@ -53,6 +53,13 @@ for package in "${nwg_look[@]}"; do install_package "$package" || exit 1 done + +# Check if nwg-look folder exists and remove it +if [ -d "nwg-look" ]; then + printf "${NOTE} Removing existing nwg-look folder...\n" + rm -rf "nwg-look" 2>&1 | tee -a "$LOG" +fi + printf "${NOTE} Installing nwg-look\n" if git clone https://github.com/nwg-piotr/nwg-look.git; then cd nwg-look || exit 1 diff --git a/install-scripts/rofi-wayland.sh b/install-scripts/rofi-wayland.sh index ccbb877..c42e998 100644 --- a/install-scripts/rofi-wayland.sh +++ b/install-scripts/rofi-wayland.sh @@ -70,23 +70,30 @@ done printf "\n\n\n" -# Clone and build xdg-desktop-portal-hyprland +# Clone and build rofi - wayland printf "${NOTE} Installing rofi-wayland...\n" + +# Check if rofi folder exists and remove it +if [ -d "rofi" ]; then + printf "${NOTE} Removing existing rofi folder...\n" + rm -rf "rofi" 2>&1 | tee -a "$LOG" +fi + if git clone https://github.com/lbonn/rofi.git 2>&1 | tee -a "$LOG"; then - cd rofi || exit 1 - meson setup build - ninja -C build - if sudo ninja -C build install 2>&1 | tee -a "$LOG"; then - printf "${OK} rofi-wayland installed successfully.\n" - # Return to the previous directory - cd .. + cd "rofi" || exit 1 + if meson setup build && ninja -C build; then + if sudo ninja -C build install 2>&1 | tee -a "$LOG"; then + printf "${OK} rofi-wayland installed successfully.\n" + # Return to the previous directory + cd .. + else + echo -e "${ERROR} Installation failed for rofi-wayland." + fi else - echo -e "${ERROR} Installation failed for rofi-wayland." + echo -e "${ERROR} Meson setup or ninja build failed for rofi-wayland." fi else echo -e "${ERROR} Download failed for rofi-wayland." fi - - clear \ No newline at end of file diff --git a/install-scripts/swappy.sh b/install-scripts/swappy.sh index 6be7bb5..d93f858 100644 --- a/install-scripts/swappy.sh +++ b/install-scripts/swappy.sh @@ -24,6 +24,12 @@ LOG="install-$(date +'%d-%H%M%S')_swappy.log" printf "${NOTE} Installing swappy..\n" +# Check if Hyprland folder exists and remove it +if [ -d "swappy" ]; then + printf "${NOTE} Removing existing swappy folder...\n" + rm -rf "swappy" 2>&1 | tee -a "$LOG" +fi + if git clone https://github.com/jtheoof/swappy.git; then cd swappy || exit 1 meson build diff --git a/install-scripts/swaylock-effects.sh b/install-scripts/swaylock-effects.sh index 18b863d..c623037 100644 --- a/install-scripts/swaylock-effects.sh +++ b/install-scripts/swaylock-effects.sh @@ -24,6 +24,12 @@ LOG="install-$(date +'%d-%H%M%S')_swaylock-effects.log" printf "${NOTE} Installing swaylock-effects\n" +# Check if swaylock-effects folder exists and remove it +if [ -d "swaylock-effects" ]; then + printf "${NOTE} Removing existing swaylock-effects folder...\n" + rm -rf "swaylock-effects" 2>&1 | tee -a "$LOG" +fi + if git clone https://github.com/mortie/swaylock-effects.git; then cd swaylock-effects || exit 1 meson build diff --git a/install-scripts/swww.sh b/install-scripts/swww.sh index 4f8aa78..4a69d49 100644 --- a/install-scripts/swww.sh +++ b/install-scripts/swww.sh @@ -24,6 +24,12 @@ LOG="install-$(date +'%d-%H%M%S')_swww.log" printf "${NOTE} Installing swww\n" +# Check if swww folder exists and remove it +if [ -d "swww" ]; then + printf "${NOTE} Removing existing swww folder...\n" + rm -rf "swww" 2>&1 | tee -a "$LOG" +fi + if git clone https://github.com/Horus645/swww.git 2>&1 | tee -a "$LOG"; then cd swww || exit 1 source "$HOME/.cargo/env" diff --git a/install-scripts/xdph.sh b/install-scripts/xdph.sh index 6b2c79c..8216b7e 100644 --- a/install-scripts/xdph.sh +++ b/install-scripts/xdph.sh @@ -22,6 +22,13 @@ RESET=$(tput sgr0) # Set the name of the log file to include the current date and time LOG="install-$(date +%d-%H%M%S)_xdph.log" + +# Check if xdg-desktop-portal-hyprland folder exists and remove it +if [ -d "xdg-desktop-portal-hyprland" ]; then + printf "${NOTE} Removing existing xdg-desktop-portal-hyprland folder...\n" + rm -rf "xdg-desktop-portal-hyprland" 2>&1 | tee -a "$LOG" +fi + # Clone and build xdg-desktop-portal-hyprland printf "${NOTE} Installing xdg-desktop-portal-hyprland...\n" if git clone --recursive https://github.com/hyprwm/xdg-desktop-portal-hyprland 2>&1 | tee -a "$LOG"; then