36 lines
1.1 KiB
Bash
36 lines
1.1 KiB
Bash
# ------------------------------------------------------
|
|
# Install tty login and issue
|
|
# ------------------------------------------------------
|
|
echo -e "${GREEN}"
|
|
figlet "Cleanup"
|
|
echo -e "${NONE}"
|
|
|
|
# Check for ttf-ms-fonts
|
|
if [[ $(_isInstalledPacman "ttf-ms-fonts") == 0 ]]; then
|
|
echo "The script has detected ttf-ms-fonts. This can cause conflicts with icons in Waybar."
|
|
if gum confirm "Do you want to uninstall ttf-ms-fonts?" ;then
|
|
sudo pacman --noconfirm -R ttf-ms-fonts
|
|
fi
|
|
fi
|
|
|
|
if [ -d ~/dotfiles/hypr/settings/ ] ;then
|
|
rm -rf ~/dotfiles/hypr/settings
|
|
echo ":: ~/dotfiles/hypr/settings removed."
|
|
fi
|
|
|
|
if [ -f ~/dotfiles/.settings/eww-monitor.sh ] ;then
|
|
if grep -q "echo" $HOME/dotfiles/.settings/eww-monitor.sh ; then
|
|
rm ~/dotfiles/.settings/eww-monitor.sh
|
|
echo ":: ~/dotfiles/.settings/eww-monitor.sh removed."
|
|
fi
|
|
fi
|
|
|
|
# Replace pfetch and neofetch with fastfetch
|
|
sed -i "s/pfetch/fastfetch/g" ~/dotfiles/.bashrc
|
|
sed -i "s/neofetch/fastfetch/g" ~/dotfiles/.bashrc
|
|
|
|
# Create default folder structure
|
|
xdg-user-dirs-update
|
|
echo
|
|
|
|
echo ":: Cleanup done." |