aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts/KooLsDotsUpdate.sh
diff options
context:
space:
mode:
authorJa.KooLit <85185940+JaKooLit@users.noreply.github.com>2025-03-21 10:00:34 +0900
committerGitHub <noreply@github.com>2025-03-21 10:00:34 +0900
commitaf7c7389f9bdb6f8da83bd51e261ed00106eea1f (patch)
treea327f82a34d13768cb7cf5d0a3d9893cc61c3ea3 /config/hypr/scripts/KooLsDotsUpdate.sh
parentf113f871fe35acb5143e16648bcbcb2c7f675fef (diff)
parent2d927892e5354abb14b9738d895b7084452886e2 (diff)
Merge branch 'development' into main-to-dev
Diffstat (limited to 'config/hypr/scripts/KooLsDotsUpdate.sh')
-rwxr-xr-xconfig/hypr/scripts/KooLsDotsUpdate.sh16
1 files changed, 8 insertions, 8 deletions
diff --git a/config/hypr/scripts/KooLsDotsUpdate.sh b/config/hypr/scripts/KooLsDotsUpdate.sh
index 4996da82..f4b8814a 100755
--- a/config/hypr/scripts/KooLsDotsUpdate.sh
+++ b/config/hypr/scripts/KooLsDotsUpdate.sh
@@ -4,13 +4,13 @@
# Local Paths
local_dir="$HOME/.config/hypr"
-iDIR="$HOME/.config/swaync/images/ja.png"
+iDIR="$HOME/.config/swaync/images/"
local_version=$(ls $local_dir/v* 2>/dev/null | sort -V | tail -n 1 | sed 's/.*v\(.*\)/\1/')
KooL_Dots_DIR="$HOME/Hyprland-Dots"
# exit if cannot find local version
if [ -z "$local_version" ]; then
- notify-send -i $iDIR "ERROR "!?!?!!"" "Unable to find KooL's dots version . exiting.... "
+ notify-send -i "$iDIR/error.png" "ERROR "!?!?!!"" "Unable to find KooL's dots version . exiting.... "
exit 1
fi
@@ -28,12 +28,12 @@ fi
# Comparing local and github versions
if [ "$(echo -e "$github_version\n$local_version" | sort -V | head -n 1)" = "$github_version" ]; then
- notify-send -i $iDIR "KooL Hyprland:" "No update available"
+ notify-send -i "$iDIR/note.png" "KooL Hyprland:" "No update available"
exit 0
else
# update available
notify_cmd_base="notify-send -t 10000 -A action1=Update -A action2=NO -h string:x-canonical-private-synchronous:shot-notify"
- notify_cmd_shot="${notify_cmd_base} -i $iDIR"
+ notify_cmd_shot="${notify_cmd_base} -i $iDIR/ja.png"
response=$($notify_cmd_shot "KooL Hyprland:" "Update available! Update now?")
@@ -41,7 +41,7 @@ else
"action1")
if [ -d $KooL_Dots_DIR ]; then
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" "E-R-R-O-R" "Kitty terminal not found. Please install Kitty terminal."
exit 1
fi
kitty -e bash -c "
@@ -49,12 +49,12 @@ else
git stash &&
git pull &&
./copy.sh &&
- notify-send -u critical -i $iDIR 'Update Completed:' 'Kindly log out and relogin to take effect'
+ notify-send -u critical -i "$iDIR/ja.png" 'Update Completed:' 'Kindly log out and relogin to take effect'
"
else
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" "E-R-R-O-R" "Kitty terminal not found. Please install Kitty terminal."
exit 1
fi
kitty -e bash -c "
@@ -62,7 +62,7 @@ else
cd $KooL_Dots_DIR &&
chmod +x copy.sh &&
./copy.sh &&
- notify-send -u critical -i $iDIR 'Update Completed:' 'Kindly log out and relogin to take effect'
+ notify-send -u critical -i "$iDIR/ja.png" 'Update Completed:' 'Kindly log out and relogin to take effect'
"
fi
;;
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage