dotfiles/.local/bin/tools/calendaradd

7 lines
177 B
Plaintext
Raw Normal View History

2021-06-01 16:59:54 +02:00
#!/bin/sh
calcurse -i "$1"
#summary assumes ics format
2021-06-15 17:48:22 +02:00
summary="$(grep "SUMMARY[^:]*:" "$1" | cut --complement -d':' -f1)"
2021-06-01 16:59:54 +02:00
notify-send "Calendar event added" "$summary"
rm "$1"