show summary more reliably

This commit is contained in:
Alexander Bocken 2021-06-01 16:59:54 +02:00
parent 5b420c6330
commit 778f2a26dc
Signed by: Alexander
GPG Key ID: 1D237BE83F9B05E8

6
.local/bin/tools/calendaradd Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
calcurse -i "$1"
#summary assumes ics format
summary="$(grep "SUMMARY[^:]*:" "$1" | cut -d':' -f2)"
notify-send "Calendar event added" "$summary"
rm "$1"