From 9c80e88985ed560e798649385cdc6b371a477c87 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Sat, 30 Dec 2023 21:00:01 +0900 Subject: [PATCH] Small update on install scripts --- README.md | 4 ++++ install-scripts/Global_functions.sh | 6 ++++++ install-scripts/gtk_themes.sh | 2 +- install-scripts/xdph.sh | 8 +++----- 4 files changed, 14 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index a63f037..8420e57 100644 --- a/README.md +++ b/README.md @@ -94,6 +94,10 @@ source ~/.zshrc - for the install part, kindly open issue on this repo - for the Pre-configured Hyprland dots / configuration, submit issue [`here`](https://github.com/JaKooLit/Hyprland-Dots/issues) +#### 🔧 Proper way to re-installing a particular script from install-scripts folder +- CD into Arch-Hyprland Folder and then ran the below command. +- i.e. `./install-scripts/gtk-themes` - For reinstall GTK Themes. + #### 🛣️ Roadmap: - ~~[ ] Install zsh and oh-my-zsh without necessary steps above~~ DONE - [ ] possibly adding gruvbox themes, cursors, icons diff --git a/install-scripts/Global_functions.sh b/install-scripts/Global_functions.sh index bc54dab..133b7ff 100755 --- a/install-scripts/Global_functions.sh +++ b/install-scripts/Global_functions.sh @@ -14,6 +14,12 @@ ORANGE=$(tput setaf 166) YELLOW=$(tput setaf 3) RESET=$(tput sgr0) + +# Create Directory for Install Logs +if [ ! -d Install-Logs ]; then + mkdir Install-Logs +fi + # Function for installing packages install_package_pacman() { # Checking if package is already installed diff --git a/install-scripts/gtk_themes.sh b/install-scripts/gtk_themes.sh index 3082f38..b384462 100755 --- a/install-scripts/gtk_themes.sh +++ b/install-scripts/gtk_themes.sh @@ -1,6 +1,6 @@ #!/bin/bash # 💫 https://github.com/JaKooLit 💫 # -# GTK Themes. Sourcing from a different Repo # +# GTK Themes & ICONS and Sourcing from a different Repo # engine=( unzip diff --git a/install-scripts/xdph.sh b/install-scripts/xdph.sh index f9117d5..3a2ee1a 100755 --- a/install-scripts/xdph.sh +++ b/install-scripts/xdph.sh @@ -29,11 +29,13 @@ for xdgs in "${xdg[@]}"; do exit 1 fi done + +printf "\n" printf "${NOTE} Checking for other XDG-Desktop-Portal-Implementations....\n" sleep 1 printf "\n" -printf "${NOTE} XDG-desktop-portal-KDE (if installed) should be manually disabled or removed! I can't remove it... sorry...\n" +printf "${NOTE} XDG-desktop-portal-KDE & GNOME (if installed) should be manually disabled or removed! I can't remove it... sorry...\n" while true; do read -rp "${CAT} Would you like to try to remove other XDG-Desktop-Portal-Implementations? (y/n) " XDPH1 echo @@ -44,10 +46,6 @@ while true; do # Clean out other portals printf "${NOTE} Clearing any other xdg-desktop-portal implementations...\n" # Check if packages are installed and uninstall if present - if pacman -Qs xdg-desktop-portal-gnome > /dev/null ; then - echo "Removing xdg-desktop-portal-gnome..." - sudo pacman -R --noconfirm xdg-desktop-portal-gnome 2>&1 | tee -a "$LOG" - fi if pacman -Qs xdg-desktop-portal-wlr > /dev/null ; then echo "Removing xdg-desktop-portal-wlr..." sudo pacman -R --noconfirm xdg-desktop-portal-wlr 2>&1 | tee -a "$LOG"