hyprland-dotfiles/.install/cleanup.sh

30 lines
1006 B
Bash
Raw Normal View History

2023-12-25 14:02:36 +00:00
# ------------------------------------------------------
# Install tty login and issue
# ------------------------------------------------------
2023-12-25 14:06:09 +00:00
echo -e "${GREEN}"
figlet "Cleanup"
echo -e "${NONE}"
2024-01-01 10:40:15 +00:00
2023-12-25 14:02:36 +00: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 14:06:09 +00:00
fi
2024-01-01 10:40:15 +00:00
2024-01-07 08:38:00 +00:00
# Check for running bluetooth.service
if [[ $(systemctl list-units --all -t service --full --no-legend "bluetooth.service" | sed 's/^\s*//g' | cut -f1 -d' ') == "bluetooth.service" ]];then
echo "bluetooth.service already running."
else
sudo systemctl enable bluetooth.service
sudo systemctl start bluetooth.service
echo "bluetooth.service activated successfully."
fi
2024-01-01 10:40:15 +00:00
2024-01-05 18:18:29 +00:00
# Create default folder structure
xdg-user-dirs-update
echo "Default folders created..."
echo
2023-12-25 14:06:09 +00:00
echo "Cleanup done."