Added lots of things

This commit is contained in:
Allen
2023-08-02 01:11:58 -05:00
parent bb8cac305b
commit 7a6cd133be
27 changed files with 346 additions and 0 deletions

31
paru-update-all Executable file
View File

@ -0,0 +1,31 @@
#!/bin/bash
# This program updates the system packages using paru
RED="\033[0;31m"
GREEN="\033[0;32m"
YELLOW="\033[1;33m"
NC="\033[0m" # No Color
echo ''
echo -e $GREEN'UPDATING PACKAGES'$NC
echo -e $GREEN'======================================='$NC
paru -Syyu
echo ''
echo -e $GREEN"================================================================="
echo -e "UPDATE COMPLETED!\n"$NC
echo $(cat /etc/pacman.conf | grep "IgnorePkg =")
read -p "DO YOU WANT TO UPDATE DANGEROUS PACKAGES TOO?
RECOMMENDED EVERY 3 MONTHS (y/N): " -i "y" USER_AGREEMENT
if [ "$USER_AGREEMENT" == "y" ]; then
# Install packages bypassing IgnorePgk
sed '/^IgnorePkg/d' /etc/pacman.conf > /tmp/432143214 | paru -Syu --config /tmp/432143214; rm /tmp/432143214
fi
read -p "Do you want to recompile xmonad? (y/N): " -i "y" XMONAD_UPDATE
if [ "$XMONAD_UPDATE" == "y" ]; then
xmonad --recompile
fi
echo -e "\nUPDATE COMPLETED!"$NC