summaryrefslogtreecommitdiff
path: root/.config/wmii-hg/rbar_clock
blob: c1692da83b07244b69c0a4c65b0051a31f45a37a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
. include.sh

id=$1
trap "rm -f ${WMII_DIR}/rbar/${id}" EXIT

while connected_to_x_server; do
	{
		printf 'label '
		date +'%a, %F %T %Z(%:::z)'
	} |sponge >> "${WMII_DIR}/rbar/${id}"
	sleep .5
done