changed update terminal to foot

Signed-off-by: thomas <thomas.williams29899@gmail.com>
This commit is contained in:
2026-05-04 19:15:09 +01:00
parent fa2ae6f4e2
commit 28c6a0c3d7

View File

@@ -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