diff --git a/dotfiles/.config/waybar/scripts/update-distro.sh b/dotfiles/.config/waybar/scripts/update-distro.sh index e127d6f..e47f54b 100755 --- a/dotfiles/.config/waybar/scripts/update-distro.sh +++ b/dotfiles/.config/waybar/scripts/update-distro.sh @@ -5,9 +5,9 @@ # Local Paths iDIR="$HOME/.config/swaync/images" -# Check for required tools (kitty) -if ! command -v kitty &> /dev/null; then - notify-send -i "$iDIR/error.png" "Need Kitty:" "Kitty terminal not found. Please install Kitty terminal." +# Check for required tools (foot) +if ! command -v foot &> /dev/null; then + notify-send -i "$iDIR/error.png" "Need foot:" "foot terminal not found. Please install foot terminal." exit 1 fi @@ -15,23 +15,23 @@ fi if command -v paru &> /dev/null || command -v yay &> /dev/null; then # Arch-based if command -v paru &> /dev/null; then - kitty -T update paru -Syu + foot -T update paru -Syu notify-send -i "$iDIR/profile-pic.jpg" -u low 'Arch-based system' 'has been updated.' else - kitty -T update yay -Syu + foot -T update yay -Syu notify-send -i "$iDIR/profile-pic.jpg" -u low 'Arch-based system' 'has been updated.' fi elif command -v dnf &> /dev/null; then # Fedora-based - kitty -T update sudo dnf update --refresh -y + foot -T update sudo dnf update --refresh -y notify-send -i "$iDIR/profile-pic.jpg" -u low 'Fedora system' 'has been updated.' elif command -v apt &> /dev/null; then # Debian-based (Debian, Ubuntu, etc.) - kitty -T update sudo apt update && sudo apt upgrade -y + foot -T update sudo apt update && sudo apt upgrade -y notify-send -i "$iDIR/profile-pic.jpg" -u low 'Debian/Ubuntu system' 'has been updated.' elif command -v zypper &> /dev/null; then # openSUSE-based - kitty -T update sudo zypper dup -y + foot -T update sudo zypper dup -y notify-send -i "$iDIR/profile-pic.jpg" -u low 'openSUSE system' 'has been updated.' else # Unsupported distro