aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts/Distro_update.sh
diff options
context:
space:
mode:
authorJaKooLit <ejhay.games@gmail.com>2025-03-20 18:08:17 +0900
committerJaKooLit <ejhay.games@gmail.com>2025-03-20 18:08:17 +0900
commitc414b2b4bb3a5be82ce48c054b35803a04c8517e (patch)
treea55fe5f2c0907ad0ab379fe88325278ff0f3861e /config/hypr/scripts/Distro_update.sh
parentdffd296b92f06b1606f8d03137fbf235a39d261b (diff)
updated some scripts to reflect new images on swaync
Diffstat (limited to 'config/hypr/scripts/Distro_update.sh')
-rwxr-xr-xconfig/hypr/scripts/Distro_update.sh16
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
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage