#!/bin/sh while true do text=$(date "+%H:%M:%S %a %Y-%m-%d") text="-$(hours-and-minutes-till-midnight) $text" xsetroot -name "$text" sleep 50 done