Blueno_Termux/myTermux/helper/finish.sh
2022-04-01 08:36:29 -04:00

34 lines
655 B
Bash
Executable File
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env bash
MYTERMUX_VERSION="0.6.1"
function alertFinish() {
echo -e "\n ‎‏‏‎⚠️ Installation Finish, but you need restart Termux to clear setup\n"
}
function alertNotification() {
IMAGE_PATH="${HOME}/.config/mytermux/alert/images"
IMAGE_FILE_NAME="finish.png"
termux-notification --sound -t "myTermux v${MYTERMUX_VERSION} has been installed" --image-path ${IMAGE_PATH}/${IMAGE_FILE_NAME}
}
function alertTorch() {
termux-toast -b "#A8D7FE" -c "#373E4D" -g middle "myTermux v${MYTERMUX_VERSION} has been installed"
}
function mainAlert() {
alertFinish
alertNotification
alertTorch
}