edited nvidia.sh

This commit is contained in:
JaKooLit 2023-11-29 22:16:48 +09:00
parent 2ce7758065
commit 75ed5deb03
2 changed files with 11 additions and 5 deletions

View File

@ -1,5 +1,8 @@
## Changelogs
## 29 Nov 2023
- nvidia.sh edited to remove hyprland-nvidia-git as well
## 26 Nov 2023
- nvidia - Move to hyprland-git. see [`commit`](https://github.com/hyprwm/Hyprland/commit/cd96ceecc551c25631783499bd92c6662c5d3616)

View File

@ -47,16 +47,19 @@ install_package() {
}
# nvidia stuff
printf "${YELLOW}Installing Nvidia Hyprland...${RESET}\n"
printf "${YELLOW} Checking for other hyprland packages and remove if any..${RESET}\n"
if pacman -Qs hyprland > /dev/null; then
printf "${YELLOW} Hyprland detected uninstalling to install Hyprland-nvidia-git...${RESET}\n"
for hyprnvi in hyprland hyprland-nvidia hyprland-git hyprland-nvidia-hidpi-git; do
printf "${YELLOW} Hyprland detected. uninstalling to install Hyprland-git...${RESET}\n"
for hyprnvi in hyprland hyprland-nvidia hyprland-nvidia-git hyprland-nvidia-hidpi-git; do
sudo pacman -R --noconfirm "$hyprnvi" 2>/dev/null | tee -a "$LOG" || true
done
fi
# install hyprland-nvidia-git
install_package "hyprland-git" 2>&1 | tee -a "$LOG"
# install hyprland-git
printf "${YELLOW}Installing Hyprland-git...${RESET}\n"
for PKG1 in hyprland-git; do
install_package "$PKG1" 2>&1 | tee -a "$LOG"
done
# Install additional Nvidia packages
printf "${YELLOW} Installing addition Nvidia packages...\n"