422db7b293
Fix execute permission on shell scripts Signed-off-by: Cynthia Foxwell <gamers@riseup.net>
18 lines
No EOL
745 B
Bash
Executable file
18 lines
No EOL
745 B
Bash
Executable file
#!/bin/bash
|
||
|
||
row0=("⠀" "⠈" "⠐" "⠘" "⠠" "⠨" "⠰" "⠸" "⢀" "⢈")
|
||
row1=("⠁" "⠉" "⠑" "⠙" "⠡" "⠩" "⠱" "⠹" "⢁" "⢉")
|
||
row2=("⠂" "⠊" "⠒" "⠚" "⠢" "⠪" "⠲" "⠺" "⢂" "⢊")
|
||
row3=("⠃" "⠋" "⠓" "⠛" "⠣" "⠫" "⠳" "⠻" "⢃" "⢋")
|
||
row4=("⠄" "⠌" "⠔" "⠜" "⠤" "⠬" "⠴" "⠼" "⢄" "⢌")
|
||
row5=("⠅" "⠍" "⠕" "⠝" "⠥" "⠭" "⠵" "⠽" "⢅" "⢍")
|
||
chars=("${row0[@]}" "${row1[@]}" "${row2[@]}" "${row3[@]}" "${row4[@]}" "${row5[@]}")
|
||
|
||
hour=$(date +"%H")
|
||
minute=$(date +"%M")
|
||
second=$(date +"%S")
|
||
[[ $hour = 0* ]] && hour=${hour:1:1}
|
||
[[ $minute = 0* ]] && minute=${minute:1:1}
|
||
[[ $second = 0* ]] && second=${second:1:1}
|
||
|
||
echo "${chars[$hour]} ${chars[$minute]} ${chars[$second]}" |