feat: settle Chrome and notifications into the classroom look
Chrome stays a full browser. The managed policy only removes the things a volunteer should never be asked about — the first-run tour, the default-browser prompt, sync and sign-in promos, the profile picker — and pins the Home button to Wonder Ink so there is always one obvious way back. Startup URL is a recommended policy rather than a managed one, so a teacher can still change it. Nothing restricts where they browse, and the profile is untouched, so YouTube and other logins survive reboots and updates. Notifications were still stock mako, which looked nothing like the rest of the shell. Give them the dock's palette: the same dark slate, the same hairline white border, rounded, white text, top right. Kept a little more opaque than the dock so text stays readable over video, and on the overlay layer so a parent-call alert can still reach someone watching a fullscreen DVD. mako was only ever reaching the session through D-Bus activation. Start it from the sway config so it is running before anything needs it. classroom-notify-test sends a sample so the styling can be checked without waiting for a real event. Co-Authored-By: Claude Opus 5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5
parent
af79aba21b
commit
6b133bdc3e
Executable
+30
@@ -0,0 +1,30 @@
|
||||
#!/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."
|
||||
|
||||
urgency=normal
|
||||
|
||||
if [[ "${1:-}" == "--critical" ]]; then
|
||||
urgency=critical
|
||||
shift
|
||||
elif [[ "${1:-}" == "--low" ]]; then
|
||||
urgency=low
|
||||
shift
|
||||
fi
|
||||
|
||||
title="${1:-DVD Ready}"
|
||||
body="${2:-A disc is ready to play.}"
|
||||
|
||||
notify-send \
|
||||
--app-name="Ekklesia Classroom" \
|
||||
--urgency="$urgency" \
|
||||
-- \
|
||||
"$title" "$body"
|
||||
|
||||
echo "Sent $urgency notification: $title"
|
||||
Reference in New Issue
Block a user