2025-02-01 01:14:42 -07:00
|
|
|
#!/bin/bash
|
|
|
|
|
# Author : Gaston Gonzalez
|
|
|
|
|
# Date : 1 February 2025
|
2025-06-05 04:35:46 -07:00
|
|
|
# Updated : 5 June 2025
|
2025-02-01 01:14:42 -07:00
|
|
|
# Purpose : Common environment variables and functions
|
|
|
|
|
|
|
|
|
|
export ESC="\x1B"
|
|
|
|
|
export RED="${ESC}[1;31m"
|
|
|
|
|
export BLUE="${ESC}[1;34m"
|
|
|
|
|
export GREEN="${ESC}[1;32m"
|
|
|
|
|
export WHITE="${ESC}[97m"
|
|
|
|
|
export YELLOW="${ESC}[1;33m"
|
|
|
|
|
export NC="${ESC}[0m"
|
|
|
|
|
|
2025-06-05 04:35:46 -07:00
|
|
|
# Display an error message in the terminal
|
2025-02-01 01:14:42 -07:00
|
|
|
show-err-dialog() {
|
|
|
|
|
local message="$1"
|
|
|
|
|
dialog --title "Notification" --msgbox "$message" 8 60
|
|
|
|
|
}
|
2025-06-05 04:35:46 -07:00
|
|
|
|
|
|
|
|
# Display a notification message as a UI popup in the desktop
|
|
|
|
|
notify-user() {
|
|
|
|
|
notify-send -t 5000 --app-name="EmComm Tools" "$1"
|
|
|
|
|
}
|