From 778f2a26dcdcd90f5cfd6594619312d10764ba45 Mon Sep 17 00:00:00 2001 From: Alexander Bocken Date: Tue, 1 Jun 2021 16:59:54 +0200 Subject: [PATCH] show summary more reliably --- .local/bin/tools/calendaradd | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 .local/bin/tools/calendaradd diff --git a/.local/bin/tools/calendaradd b/.local/bin/tools/calendaradd new file mode 100755 index 0000000..158e560 --- /dev/null +++ b/.local/bin/tools/calendaradd @@ -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"