Schlafzeit der Uhr auf maximal 10 sekunden begrenzt.

This commit is contained in:
madmaurice 2015-06-26 08:46:42 +02:00
parent 27fc2eea36
commit 469515a86b

View file

@ -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