blob: 695f351f94a95b6d4e85e91bff160593879e8460 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/bin/bash
task_date=$(yad --calendar --date-format=%Y-%m-%d)
if [[ $? -ne 0 ]]; then
notify-send "Cancelling..." "" --app-name="remind" --icon="dialog error"
exit 0
fi
task_time=$(yad --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=$(yad --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"
|