scwrypts v3 refactor

This commit is contained in:
2023-06-27 16:53:59 -06:00
parent 02ed7d615a
commit 1a64551465
57 changed files with 590 additions and 501 deletions

View File

@@ -0,0 +1,19 @@
#####################################################################
DEPENDENCIES+=(
notify-send
)
REQUIRED_ENV+=()
#####################################################################
NOTIFY_SEND() { notify-send "$SCWRYPT_GROUP : $SCWRYPT_NAME" "$1"; }
_NOTIFY() {
NOTIFY_SEND "$1 : ${*:2}"
$1 ${@:2}
}
NOTIFY_SUCCESS() { _NOTIFY SUCCESS $@; }
NOTIFY_ERROR() { _NOTIFY ERROR $@; }
NOTIFY_FAIL() { _NOTIFY FAIL $@; }