From 0133239ebe4a8ccb1ab772a2f8fbfdf62409e825 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Fri, 8 Oct 2021 00:53:32 +0300 Subject: bin: move td to remind --- .local/bin/td | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to '.local/bin') diff --git a/.local/bin/td b/.local/bin/td index 3de0d55..f15c0c6 100755 --- a/.local/bin/td +++ b/.local/bin/td @@ -3,23 +3,24 @@ task_date=$(zenity --calendar --date-format=%Y-%m-%d) if [[ $? -ne 0 ]]; then - notify-send "Cancelling..." "" --app-name="task todo" --icon="dialog error" + notify-send "Cancelling..." "" --app-name="remind" --icon="dialog error" exit 0 fi task_time=$(zenity --entry --text="enter time in xx:xx format" --entry-text="00:00") if [[ $? -ne 0 ]]; then - notify-send "Cancelling..." "" --app-name="task todo" --icon="dialog error" + notify-send "Cancelling..." "" --app-name="remind" --icon="dialog error" exit 0 fi task_description=$(zenity --entry --text="enter description") if [[ $? -ne 0 ]]; then - notify-send "Cancelling..." "" --app-name="task todo" --icon="dialog error" + notify-send "Cancelling..." "" --app-name="remind" --icon="dialog error" exit 0 fi -RESULT=$(task add due:${task_date}T$task_time "$task_description") -notify-send "Success" "$RESULT" --app-name="taskwarrior" --icon="checkmark" +echo REM "${task_date}" AT "${task_time}" +45 *15 MSG %\""${task_description}"%\" %c% >> "${HOME}/nextcloud/remind/050-events.rem" + +notify-send "notification set!" "${task_date} at ${task_time}" --app-name="remind" --icon="checkmark" -- cgit v1.2.3-70-g09d2