summaryrefslogtreecommitdiffstats
path: root/bin/td
diff options
context:
space:
mode:
Diffstat (limited to 'bin/td')
-rwxr-xr-xbin/td25
1 files changed, 0 insertions, 25 deletions
diff --git a/bin/td b/bin/td
deleted file mode 100755
index 3de0d55..0000000
--- a/bin/td
+++ /dev/null
@@ -1,25 +0,0 @@
1#!/bin/bash
2
3task_date=$(zenity --calendar --date-format=%Y-%m-%d)
4
5if [[ $? -ne 0 ]]; then
6 notify-send "Cancelling..." "" --app-name="task todo" --icon="dialog error"
7 exit 0
8fi
9
10task_time=$(zenity --entry --text="enter time in xx:xx format" --entry-text="00:00")
11
12if [[ $? -ne 0 ]]; then
13 notify-send "Cancelling..." "" --app-name="task todo" --icon="dialog error"
14 exit 0
15fi
16
17task_description=$(zenity --entry --text="enter description")
18
19if [[ $? -ne 0 ]]; then
20 notify-send "Cancelling..." "" --app-name="task todo" --icon="dialog error"
21 exit 0
22fi
23
24RESULT=$(task add due:${task_date}T$task_time "$task_description")
25notify-send "Success" "$RESULT" --app-name="taskwarrior" --icon="checkmark"