summaryrefslogtreecommitdiffstats
path: root/.local
diff options
context:
space:
mode:
authorYigit Sever2021-11-12 19:47:54 +0300
committerYigit Sever2021-11-12 19:47:54 +0300
commitd8b31c6d34de59a1f1e26cc1860a312ddd08262d (patch)
treea8928090dd7f86e2b4164c900fb8fc9d7cdb0635 /.local
parent93c14d91fb94bbd954da49a3cb03e87ee05f2dd7 (diff)
downloaddotfiles-d8b31c6d34de59a1f1e26cc1860a312ddd08262d.tar.gz
dotfiles-d8b31c6d34de59a1f1e26cc1860a312ddd08262d.tar.bz2
dotfiles-d8b31c6d34de59a1f1e26cc1860a312ddd08262d.zip
done: task changed report output I changed done
diffstat (limited to '.local')
-rwxr-xr-x.local/bin/done5
1 files changed, 2 insertions, 3 deletions
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
8if ACTIVE_TASK=$(task active); then 8if 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"