summaryrefslogtreecommitdiff
path: root/.local/bin
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2024-03-30 20:53:48 -0400
committerBenjamin Chausse <benjamin@chausse.xyz>2024-03-30 20:53:48 -0400
commitfb33ed3e6f9afce7dc2308c0580b13a569372a3c (patch)
treeacc162dc48af5525f5f1c3fd3b3ae3efba93c572 /.local/bin
parent02f5f552fcdeef5980068abb34a0ad203cb314e1 (diff)
Gentoo update status script
Diffstat (limited to '.local/bin')
-rwxr-xr-x.local/bin/updatestatus14
1 files changed, 14 insertions, 0 deletions
diff --git a/.local/bin/updatestatus b/.local/bin/updatestatus
new file mode 100755
index 0000000..aedbb84
--- /dev/null
+++ b/.local/bin/updatestatus
@@ -0,0 +1,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