#!/bin/bash task_date=$(zenity --calendar --date-format=%Y-%m-%d) if [[ $? -ne 0 ]]; then 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="remind" --icon="dialog error" exit 0 fi task_description=$(zenity --entry --text="enter description") if [[ $? -ne 0 ]]; then notify-send "Cancelling..." "" --app-name="remind" --icon="dialog error" exit 0 fi echo REM "${task_date}" AT "${task_time}" +45 *15 MSG %\""${task_description}"%\" %c %3% >> "${HOME}/nextcloud/virtuals/remind/050-events.rem" notify-send "notification set!" "${task_date} at ${task_time}" --app-name="remind" --icon="checkmark"