diff options
author | Yigit Sever | 2021-11-12 19:47:54 +0300 |
---|---|---|
committer | Yigit Sever | 2021-11-12 19:47:54 +0300 |
commit | d8b31c6d34de59a1f1e26cc1860a312ddd08262d (patch) | |
tree | a8928090dd7f86e2b4164c900fb8fc9d7cdb0635 | |
parent | 93c14d91fb94bbd954da49a3cb03e87ee05f2dd7 (diff) | |
download | dotfiles-d8b31c6d34de59a1f1e26cc1860a312ddd08262d.tar.gz dotfiles-d8b31c6d34de59a1f1e26cc1860a312ddd08262d.tar.bz2 dotfiles-d8b31c6d34de59a1f1e26cc1860a312ddd08262d.zip |
done: task changed report output I changed done
-rw-r--r-- | .config/task/taskrc##h.lowe | 6 | ||||
-rwxr-xr-x | .local/bin/done | 5 |
2 files changed, 8 insertions, 3 deletions
diff --git a/.config/task/taskrc##h.lowe b/.config/task/taskrc##h.lowe index 003a2d5..b92a94d 100644 --- a/.config/task/taskrc##h.lowe +++ b/.config/task/taskrc##h.lowe | |||
@@ -78,6 +78,12 @@ report.active.description = Current task | |||
78 | report.active.labels = ID,Description | 78 | report.active.labels = ID,Description |
79 | report.active.columns = id,description | 79 | report.active.columns = id,description |
80 | 80 | ||
81 | ### You cannot head/tail report output now, this will be better ssh calm down | ||
82 | report.active_task_id.description = ID of the active task | ||
83 | report.active_task_id.labels = X | ||
84 | report.active_task_id.columns = id | ||
85 | report.active_task_id.filter = +ACTIVE | ||
86 | |||
81 | calendar.details=full | 87 | calendar.details=full |
82 | taskd.credentials=me\/yigit sever\/765df4a2-6c6c-408b-a266-17117e944f4e | 88 | taskd.credentials=me\/yigit sever\/765df4a2-6c6c-408b-a266-17117e944f4e |
83 | taskd.certificate=~/.local/share/task/lowe.cert.pem | 89 | taskd.certificate=~/.local/share/task/lowe.cert.pem |
diff --git a/.local/bin/done b/.local/bin/done index ae76287..950541c 100755 --- a/.local/bin/done +++ b/.local/bin/done | |||
@@ -1,4 +1,4 @@ | |||
1 | #!/bin/bash | 1 | #!/usr/bin/env bash |
2 | 2 | ||
3 | # we `start` tasks through taskwarrior which uses a hook to start them in | 3 | # we `start` tasks through taskwarrior which uses a hook to start them in |
4 | # timewarrior | 4 | # timewarrior |
@@ -7,11 +7,10 @@ function say_cancel { notify-send "cancelling, no action taken" "" --app-name="d | |||
7 | 7 | ||
8 | if ACTIVE_TASK=$(task active); then | 8 | if ACTIVE_TASK=$(task active); then |
9 | 9 | ||
10 | task_id=$(echo "${ACTIVE_TASK}" | head -n4 | tail -n1 | cut -d' ' -f1) | 10 | task_id=$(task active_task_id | xargs | cut -d' ' -f3) |
11 | task_description=$(echo "${ACTIVE_TASK}" | head -n4 | tail -n1 | cut -d' ' -f2-) | 11 | task_description=$(echo "${ACTIVE_TASK}" | head -n4 | tail -n1 | cut -d' ' -f2-) |
12 | 12 | ||
13 | if choice=$(printf "done\npause" | rofi -dmenu -p "${task_description}" -lines 2 -no-custom); then | 13 | if choice=$(printf "done\npause" | rofi -dmenu -p "${task_description}" -lines 2 -no-custom); then |
14 | |||
15 | if [[ ${choice} == "done" ]]; then | 14 | if [[ ${choice} == "done" ]]; then |
16 | task "done" "${task_id}" | 15 | task "done" "${task_id}" |
17 | notify-send "👏👏👏 good work there" "task ${task_description} is complete" --app-name="done" --icon="checkmark" | 16 | notify-send "👏👏👏 good work there" "task ${task_description} is complete" --app-name="done" --icon="checkmark" |