Hyprland-dotfiles/.install/remove.sh

53 lines
1.4 KiB
Bash
Raw Normal View History

2024-02-27 08:54:19 -05:00
#!/bin/bash
2024-02-27 09:22:31 -05:00
2024-03-20 07:59:44 -04:00
# Remove Rofi Calc
if [[ $(_isInstalledPacman "rofi-calc") == 0 ]]; then
sudo pacman --noconfirm -Rns rofi-calc
echo ":: rofi-calc removed"
echo
fi
2024-03-20 04:14:36 -04:00
# Remove Rofi
if [[ $(_isInstalledPacman "rofi") == 0 ]]; then
sudo pacman --noconfirm -Rns rofi
echo ":: rofi removed"
echo
fi
2024-02-27 09:22:31 -05:00
# Remove Swayidle
if [[ $(_isInstalledPacman "swayidle") == 0 ]]; then
sudo pacman --noconfirm -Rns swayidle
echo ":: swayidle removed"
echo
fi
# Remove Swaylock
if [[ $(_isInstalledYay "swaylock-effects-git") == 0 ]]; then
yay --noconfirm -Rns swaylock-effects-git
echo ":: swaylock removed"
echo
fi
# Remove hypridle-bin
2024-02-27 08:54:19 -05:00
if [[ $(_isInstalledYay "hypridle-git") == 0 ]]; then
yay --noconfirm -Rns hypridle-git
if [ -f /usr/lib/debug/usr/bin/hypridle.debug ] ;then
sudo rm /usr/lib/debug/usr/bin/hypridle.debug
echo ":: /usr/lib/debug/usr/bin/hypridle.debug removed"
fi
echo ":: hypridle-git uninstalled."
echo ":: hypridle can now be installed."
echo
fi
2024-02-27 09:22:31 -05:00
# Remove hypridle-bin
2024-02-27 08:54:19 -05:00
if [[ $(_isInstalledYay "hyprlock-git") == 0 ]]; then
yay --noconfirm -Rns hyprlock-git
if [ -f /usr/lib/debug/usr/bin/hyprlock.debug ] ;then
sudo rm /usr/lib/debug/usr/bin/hyprlock.debug
echo ":: /usr/lib/debug/usr/bin/hyprlock.debug removed"
fi
echo ":: hyprlock-git uninstalled."
echo ":: hyprlock can now be installed."
2024-02-27 09:22:31 -05:00
echo
fi