summaryrefslogtreecommitdiff
path: root/.config/wmii-hg/rbar_clock
blob: e84d5c36d6847ea467eab9c2e0eccf80db5396a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env bash

update() {
	id=$1
	setup_trap "$id"

	while true; do
		{
			printf 'label '
			date +'%a, %F %T %Z(%:::z)'
		} | write "$id"
		sleep .5
	done
}

. "$(dirname "$0")/rbar.sh"