changed update terminal to foot
Signed-off-by: thomas <thomas.williams29899@gmail.com>
This commit is contained in:
@@ -5,9 +5,9 @@
|
|||||||
# Local Paths
|
# Local Paths
|
||||||
iDIR="$HOME/.config/swaync/images"
|
iDIR="$HOME/.config/swaync/images"
|
||||||
|
|
||||||
# Check for required tools (kitty)
|
# Check for required tools (foot)
|
||||||
if ! command -v kitty &> /dev/null; then
|
if ! command -v foot &> /dev/null; then
|
||||||
notify-send -i "$iDIR/error.png" "Need Kitty:" "Kitty terminal not found. Please install Kitty terminal."
|
notify-send -i "$iDIR/error.png" "Need foot:" "foot terminal not found. Please install foot terminal."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -15,23 +15,23 @@ fi
|
|||||||
if command -v paru &> /dev/null || command -v yay &> /dev/null; then
|
if command -v paru &> /dev/null || command -v yay &> /dev/null; then
|
||||||
# Arch-based
|
# Arch-based
|
||||||
if command -v paru &> /dev/null; then
|
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.'
|
notify-send -i "$iDIR/profile-pic.jpg" -u low 'Arch-based system' 'has been updated.'
|
||||||
else
|
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.'
|
notify-send -i "$iDIR/profile-pic.jpg" -u low 'Arch-based system' 'has been updated.'
|
||||||
fi
|
fi
|
||||||
elif command -v dnf &> /dev/null; then
|
elif command -v dnf &> /dev/null; then
|
||||||
# Fedora-based
|
# 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.'
|
notify-send -i "$iDIR/profile-pic.jpg" -u low 'Fedora system' 'has been updated.'
|
||||||
elif command -v apt &> /dev/null; then
|
elif command -v apt &> /dev/null; then
|
||||||
# Debian-based (Debian, Ubuntu, etc.)
|
# 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.'
|
notify-send -i "$iDIR/profile-pic.jpg" -u low 'Debian/Ubuntu system' 'has been updated.'
|
||||||
elif command -v zypper &> /dev/null; then
|
elif command -v zypper &> /dev/null; then
|
||||||
# openSUSE-based
|
# 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.'
|
notify-send -i "$iDIR/profile-pic.jpg" -u low 'openSUSE system' 'has been updated.'
|
||||||
else
|
else
|
||||||
# Unsupported distro
|
# Unsupported distro
|
||||||
|
|||||||
Reference in New Issue
Block a user