Schlafzeit der Uhr auf maximal 10 sekunden begrenzt.
This commit is contained in:
parent
27fc2eea36
commit
469515a86b
1 changed files with 3 additions and 0 deletions
|
@ -124,6 +124,9 @@ clock() {
|
|||
info=$(date +"%H:%M")
|
||||
#Bad hack: convert to int to remove leading 0s
|
||||
seconds_to_wait=$[ 61 - $(date +"%S" | awk '{print int($0)}') ];
|
||||
if [ "$seconds_to_wait" -gt 10 ]; then
|
||||
seconds_to_wait=10
|
||||
fi
|
||||
echo clock "%{A:I "clock 1061":}$icon_clock $info%{A}" > $FIFO;
|
||||
|
||||
sleep $seconds_to_wait
|
||||
|
|
Loading…
Reference in a new issue