dotfiles/uninstall.sh
2025-09-27 18:38:32 +02:00

18 lines
651 B
Bash

read -p "Do you want to uninstall? (yes/no): " answer
if [[ "$answer" == "yes" ]]; then
if pgrep -x "Hyprland" > /dev/null; then
echo "Hyprland is running. Please exit Hyprland by pressing CTRL + M and run the script again."
else
echo "Proceeding with the uninstallation..."
rm -rf ~/.config/hypr
rm -rf ~/.config/waybar
rm -rf ~/.config/swaylock
rm -rf ~/.config/fastfetch
sudo pacman -Rns hyprland fastfetch unzip alacritty rofi swaybg go yay activate-linux hyprshot spotify swaylock-effects --noconfirm
echo "Uninstallation Completed! Please reboot your system."
fi
else
echo "Uninstallation canceled."
fi