summaryrefslogtreecommitdiff
path: root/.config/wmii-hg/rbar_clock
blob: a09f0168318b74ea205056bf18a6bc6100a5e29a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/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"