#!/bin/sh

ROOT=$(lsw -r)
SW=$(wattr w $ROOT)
SH=$(wattr h $ROOT)

W=64
H=32
X=$((SW - W))
Y=$((SH - H))

font='-*-profont-medium-*-*--12-*-*-*-*-*-*-1'

while :; do
    date "+%{c}%T"
    sleep 1
done | bar -d -g ${W}x${H}+$X+$Y -f "$font" -B\#ff261616 -F\#ff888888
