Added weekday

This commit is contained in:
madmaurice 2015-10-12 21:43:31 +02:00
parent 0cebde4ea6
commit 8af6d64322

View file

@ -107,7 +107,7 @@ batterysymbol() {
clock() { clock() {
while true; do while true; do
info=$(date +"%d.%m. %H:%M") info=$(date +"%d.%m. (%V) %H:%M")
#Bad hack: convert to int to remove leading 0s #Bad hack: convert to int to remove leading 0s
seconds_to_wait=$[ 61 - $(date +"%S" | awk '{print int($0)}') ]; seconds_to_wait=$[ 61 - $(date +"%S" | awk '{print int($0)}') ];
if [ "$seconds_to_wait" -gt 10 ]; then if [ "$seconds_to_wait" -gt 10 ]; then