-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathclockr
More file actions
executable file
·42 lines (37 loc) · 908 Bytes
/
clockr
File metadata and controls
executable file
·42 lines (37 loc) · 908 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
x=echo
e=d1s3d1; f=s2d1s2; g=d1s4; h=s4d1
i="1 d5"; s=0; y=" "; z="\033[";
$x -e "\n\n\n\n\n\n\n"
set $i 7 $e $i 9 $f $i 3 $h $i 3 $g 2 d5 3 $h $i 3 $h $i 4 $e $i 4 $h $i 3 \
$g $i 3 $h $i 4 $g $i 3 $e 2 d5 8 $h $i 3 $e $i 3 $e 2 d5 3 $e $i 4 $h 3 s1 \
1 d1 1 s1 1 d1 3 s1
for l in {0..9} a
do
for m in {0..8}
do
if [ $s = 0 ]
then
s=$1
t=$2
shift 2
fi
s=$((s-1)); p=$t; a="";
while [ $p ]
do
c=${p:0:1}; n=${p:1:1}; p=${p:2:9}; [ $c = d ] && a="$a${z}7m";
a="$a${y:0:$n}${y:0:$n}"; [ $c = d ] && a="$a${z}m";
done
d[0x$l$m]="$a"
done
done
while :;
do set `date "+%Ha%Ma%S "`;t=$1;s=$2;$x -ne "\r${z}8A";
for l in {0..8};
do for ((i=0;i<8;i++));
do $x -ne "${d[0x${t:$i:1}$l]}";
[ $i != 7 ]&&$x -n " ";
done;[ $l != 8 ]&&$x;
done;$x -n " ";
s=$((3000-1${s:0:3}));sleep 1;
done