diff options
author | Yigit Sever | 2021-10-08 00:53:32 +0300 |
---|---|---|
committer | Yigit Sever | 2021-10-08 00:53:32 +0300 |
commit | 0133239ebe4a8ccb1ab772a2f8fbfdf62409e825 (patch) | |
tree | 844206b869694e3754d793a0cf0de7cf6ccdb140 | |
parent | 37b1bb345883939fcdad3c32d9e47050f5dc6c85 (diff) | |
download | dotfiles-0133239ebe4a8ccb1ab772a2f8fbfdf62409e825.tar.gz dotfiles-0133239ebe4a8ccb1ab772a2f8fbfdf62409e825.tar.bz2 dotfiles-0133239ebe4a8ccb1ab772a2f8fbfdf62409e825.zip |
bin: move td to remind
-rwxr-xr-x | .local/bin/td | 11 |
1 files changed, 6 insertions, 5 deletions
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 @@ | |||
3 | task_date=$(zenity --calendar --date-format=%Y-%m-%d) | 3 | task_date=$(zenity --calendar --date-format=%Y-%m-%d) |
4 | 4 | ||
5 | if [[ $? -ne 0 ]]; then | 5 | if [[ $? -ne 0 ]]; then |
6 | notify-send "Cancelling..." "" --app-name="task todo" --icon="dialog error" | 6 | notify-send "Cancelling..." "" --app-name="remind" --icon="dialog error" |
7 | exit 0 | 7 | exit 0 |
8 | fi | 8 | fi |
9 | 9 | ||
10 | task_time=$(zenity --entry --text="enter time in xx:xx format" --entry-text="00:00") | 10 | task_time=$(zenity --entry --text="enter time in xx:xx format" --entry-text="00:00") |
11 | 11 | ||
12 | if [[ $? -ne 0 ]]; then | 12 | if [[ $? -ne 0 ]]; then |
13 | notify-send "Cancelling..." "" --app-name="task todo" --icon="dialog error" | 13 | notify-send "Cancelling..." "" --app-name="remind" --icon="dialog error" |
14 | exit 0 | 14 | exit 0 |
15 | fi | 15 | fi |
16 | 16 | ||
17 | task_description=$(zenity --entry --text="enter description") | 17 | task_description=$(zenity --entry --text="enter description") |
18 | 18 | ||
19 | if [[ $? -ne 0 ]]; then | 19 | if [[ $? -ne 0 ]]; then |
20 | notify-send "Cancelling..." "" --app-name="task todo" --icon="dialog error" | 20 | notify-send "Cancelling..." "" --app-name="remind" --icon="dialog error" |
21 | exit 0 | 21 | exit 0 |
22 | fi | 22 | fi |
23 | 23 | ||
24 | RESULT=$(task add due:${task_date}T$task_time "$task_description") | 24 | echo REM "${task_date}" AT "${task_time}" +45 *15 MSG %\""${task_description}"%\" %c% >> "${HOME}/nextcloud/remind/050-events.rem" |
25 | notify-send "Success" "$RESULT" --app-name="taskwarrior" --icon="checkmark" | 25 | |
26 | notify-send "notification set!" "${task_date} at ${task_time}" --app-name="remind" --icon="checkmark" | ||