appointments only in statusbar if notifs allowed

This commit is contained in:
2020-12-19 11:48:55 +01:00
parent 7aa8c71d49
commit c8bdda59bb
2 changed files with 13 additions and 3 deletions

View File

@ -12,7 +12,10 @@ if [ -n "$diff" ]; then
else
midnight=$(( $(date --date "$(date | sed 's/..:..:../23:59:59/; s/ PM//; s/ AM//')" +%s) + 1 ))
if [ $midnight -gt "$time_appointment" ]; then
printf '%s %s' "$(date --date "@$time_appointment" +'%H:%M')" "$appointment"
if [ ! -f /tmp/nodunst ]; then
printf '%s %s' "$(date --date "@$time_appointment" +'%H:%M')" "$appointment"
fi
printf '\n'
fi
fi
else