summaryrefslogtreecommitdiff
path: root/.local/bin/updatestatus
blob: 7000608a129b2d5b07f8a6c15f27bdc57372f27a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

time="$($1)"
[ -z "$1" ] && time="5"

# Prevent "no such file or directory" on 1st run
clear && genlop -c >/tmp/genlop

while true; do
	cat /tmp/genlop
	sleep "$time"
	genlop -c >/tmp/genlop
	clear
done