#!/bin/bash set -euo pipefail # Sends a sample notification so the classroom styling can be checked # without waiting for a real event. # # classroom-notify-test # classroom-notify-test "Title" "Body text" # classroom-notify-test --critical "Parent Call" "Room 3 needs a parent." # # All of the work — finding the classroom desktop session and delivering # into it — is classroom-notify's. This only supplies the sample. here="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" if [[ -x "$here/classroom-notify" ]]; then exec "$here/classroom-notify" "$@" fi exec /usr/local/bin/classroom-notify "$@"