diff options
| author | JaKooLit <ejhay.games@gmail.com> | 2025-03-20 18:08:17 +0900 |
|---|---|---|
| committer | JaKooLit <ejhay.games@gmail.com> | 2025-03-20 18:08:17 +0900 |
| commit | c414b2b4bb3a5be82ce48c054b35803a04c8517e (patch) | |
| tree | a55fe5f2c0907ad0ab379fe88325278ff0f3861e /config/hypr/scripts/Distro_update.sh | |
| parent | dffd296b92f06b1606f8d03137fbf235a39d261b (diff) | |
updated some scripts to reflect new images on swaync
Diffstat (limited to 'config/hypr/scripts/Distro_update.sh')
| -rwxr-xr-x | config/hypr/scripts/Distro_update.sh | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/config/hypr/scripts/Distro_update.sh b/config/hypr/scripts/Distro_update.sh index c687ba0c..b0b1446b 100755 --- a/config/hypr/scripts/Distro_update.sh +++ b/config/hypr/scripts/Distro_update.sh @@ -3,11 +3,11 @@ # Simple bash script to check and will try to update your system # Local Paths -iDIR="$HOME/.config/swaync/images/ja.png" +iDIR="$HOME/.config/swaync/images" # Check for required tools (kitty) if ! command -v kitty &> /dev/null; then - notify-send -i $iDIR "Need Kitty:" "Kitty terminal not found. Please install Kitty terminal." + notify-send -i "$iDIR/error.png" "Need Kitty:" "Kitty terminal not found. Please install Kitty terminal." exit 1 fi @@ -16,25 +16,25 @@ 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 - notify-send -i $iDIR -u low 'Arch-based system' 'has been updated.' + notify-send -i "$iDIR/ja.png" -u low 'Arch-based system' 'has been updated.' else kitty -T update yay -Syu - notify-send -i $iDIR -u low 'Arch-based system' 'has been updated.' + notify-send -i "$iDIR/ja.png" -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 - notify-send -i $iDIR -u low 'Fedora system' 'has been updated.' + notify-send -i "$iDIR/ja.png" -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 - notify-send -i $iDIR -u low 'Debian/Ubuntu system' 'has been updated.' + notify-send -i "$iDIR/ja.png" -u low 'Debian/Ubuntu system' 'has been updated.' elif command -v zypper &> /dev/null; then # openSUSE-based kitty -T update sudo zypper dup -y - notify-send -i $iDIR -u low 'openSUSE system' 'has been updated.' + notify-send -i "$iDIR/ja.png" -u low 'openSUSE system' 'has been updated.' else # Unsupported distro - notify-send -i $iDIR -u critical "Unsupported system" "This script does not support your distribution." + notify-send -i "$iDIR/error.png" -u critical "Unsupported system" "This script does not support your distribution." exit 1 fi |
