This commit is contained in:
Stephan Raabe 2023-08-13 11:24:23 +02:00
parent 0b4c3be3c5
commit 856bb4fe6f

View File

@ -44,12 +44,10 @@ done
echo "" echo ""
echo "-> Install main packages" echo "-> Install main packages"
packagesPacman=("alacritty" "scrot" "nitrogen" "picom" "starship" "slock" "neovim" "rofi" "dunst" "mpv" "freerdp" "xfce4-power-manager" "thunar" "mousepad" "ttf-font-awesome" "ttf-fira-sans" "ttf-fira-code" "ttf-firacode-nerd" "figlet" "lxappearance" "polybar" "breeze" "breeze-gtk" "rofi-calc" "vlc" "exa"); packagesPacman=("alacritty" "scrot" "nitrogen" "picom" "starship" "slock" "neovim" "rofi" "dunst" "mpv" "freerdp" "xfce4-power-manager" "thunar" "mousepad" "ttf-font-awesome" "ttf-fira-sans" "ttf-fira-code" "ttf-firacode-nerd" "figlet" "lxappearance" "polybar" "breeze" "breeze-gtk" "rofi-calc" "vlc" "exa" "python-pip" "python-psutil" "python-rich" "python-click");
packagesYay=("brave-bin" "pfetch" "bibata-cursor-theme"); packagesYay=("brave-bin" "pfetch" "bibata-cursor-theme");
# pywal installation below # pywal installation below
packagesPip=("psutil" "rich" "click");
# ------------------------------------------------------ # ------------------------------------------------------
# Function: Is package installed # Function: Is package installed
@ -76,16 +74,6 @@ _isInstalledYay() {
return; #false return; #false
} }
_isInstalledPip() {
package="$1";
check="$(pip list | grep "${package} ")";
if [ -n "${check}" ] ; then
echo 0;
else
echo 1;
fi
}
# ------------------------------------------------------ # ------------------------------------------------------
# Function Install all package if not installed # Function Install all package if not installed
# ------------------------------------------------------ # ------------------------------------------------------
@ -172,9 +160,11 @@ _installSymLink() {
else else
if [ -d ${symlink} ]; then if [ -d ${symlink} ]; then
echo "Directory ${symlink}/ exists." echo "Directory ${symlink}/ exists."
rm -r ${symlink}
else else
if [ -f ${symlink} ]; then if [ -f ${symlink} ]; then
echo "File ${symlink} exists." echo "File ${symlink} exists."
rm ${symlink}
else else
ln -s ${linksource} ${linktarget} ln -s ${linksource} ${linktarget}
echo "Link ${linksource} -> ${linktarget} created." echo "Link ${linksource} -> ${linktarget} created."