summaryrefslogtreecommitdiff
path: root/.local/bin/updatestatus
blob: aedbb844dc4ce280b6c5ab4d36d6e8f2578697c0 (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
genlop -c >/tmp/genlop

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