Many shell scripts utilize notify-send
command which depending
on the desktop environment and notification server, presents a notification
balloon to the user.
In termux-api-package, there is a termux-notification script which uses Android's notification server.
notify-send
is a POSIX sh wrapper over that script which mimics
freedesktop
notify-send CLI so one should not need
to install X to issue notifications in a Termux environment.
Put the script somewhere in $PATH
and make it executable (chmod +x /path/to/script
)
- linter :
shellcheck
- formatter:
shfmt -i 4 -bn -ci -sr
- TODOs are in the script itself