Hyprland-dotfiles/.install/cleanup.sh

36 lines
1.1 KiB
Bash
Raw Normal View History

2023-12-25 09:02:36 -05:00
# ------------------------------------------------------
# Install tty login and issue
# ------------------------------------------------------
2023-12-25 09:06:09 -05:00
echo -e "${GREEN}"
figlet "Cleanup"
echo -e "${NONE}"
2024-01-01 05:40:15 -05:00
2023-12-25 09:02:36 -05:00
# 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
2023-12-25 09:06:09 -05:00
fi
2024-01-01 05:40:15 -05:00
2024-03-07 09:51:34 -05:00
if [ -d ~/dotfiles/hypr/settings/ ] ;then
rm -rf ~/dotfiles/hypr/settings
2024-03-20 05:10:25 -04:00
echo ":: ~/dotfiles/hypr/settings removed."
fi
2024-05-01 06:31:57 -04:00
if [ -f ~/dotfiles/.settings/eww-monitor.sh ] ;then
2024-05-01 06:39:24 -04:00
if grep -q "echo" $HOME/dotfiles/.settings/eww-monitor.sh ; then
2024-05-01 06:31:57 -04:00
rm ~/dotfiles/.settings/eww-monitor.sh
echo ":: ~/dotfiles/.settings/eww-monitor.sh removed."
fi
fi
2024-05-07 15:44:14 -04:00
# Replace pfetch and neofetch with fastfetch
sed -i "s/pfetch/fastfetch/g" ~/dotfiles/.bashrc
sed -i "s/neofetch/fastfetch/g" ~/dotfiles/.bashrc
2024-01-05 13:18:29 -05:00
# Create default folder structure
xdg-user-dirs-update
echo
2024-03-20 05:10:25 -04:00
echo ":: Cleanup done."