mirror of
https://github.com/kmein/niveum
synced 2026-03-18 19:11:08 +01:00
feat: 256color + countdown + pdf-ocr.sh
This commit is contained in:
13
.bin/countdown
Executable file
13
.bin/countdown
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env -S awk -f
|
||||
function z() {
|
||||
getline < "/proc/uptime"
|
||||
close("/proc/uptime")
|
||||
return $0
|
||||
}
|
||||
BEGIN {
|
||||
x = z()
|
||||
while (1) {
|
||||
y = z()
|
||||
printf "%02d:%05.2f\r", (y - x) / 60, (y - x) % 60
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user