#!/bin/bash ## ## Slate script: the work day as time boxes. ## ## Slate scripts write their slate to stdout, either as PNG bytes or as plain ## text for cloudslateassist to render. This one renders its own, because the ## past/now/future styling has no plain-text equivalent. ## W=${SLATE_W:-1072} H=${SLATE_H:-1448} today=$(workdayassist -a today) || exit 1 draw=$(echo "$today" | php "$SCRIPT_LIBEXEC/render.php" "$W" "$H") || exit 1 convert -size "${W}x${H}" xc:white -font "$SLATE_FONT" \ -draw "$draw" png:- || exit 1