Improve khal notification

Remove holidays and "today" line from output.
This commit is contained in:
Daniel Siepmann 2023-08-21 09:20:00 +02:00
parent 20683e8b71
commit f41c675e11
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4

View file

@ -12,11 +12,12 @@ let
pkgs.coreutils-full
pkgs.khal
pkgs.libnotify
pkgs.gnugrep
];
text = ''
date=$(date "+%H:%M:00")
events=$(khal list -d contact_birthdays --notstarted "$date" "$1")
events=$(khal list -d contact_birthdays --notstarted "$date" "$1" | grep -v -e "Urlaub" -e "Today")
if [ -z "$events" ]; then
exit 0;
fi