From 0b627cc192078750be0c78a3761f0c2e15507c2e Mon Sep 17 00:00:00 2001 From: Gardouille Date: Tue, 12 Oct 2021 09:46:47 +0200 Subject: [PATCH] Taskw: Also kill proc related to the stopped task --- rofi-task.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rofi-task.sh b/rofi-task.sh index 453e034..996bae5 100755 --- a/rofi-task.sh +++ b/rofi-task.sh @@ -40,6 +40,12 @@ display_current_task() { # {{{ ## If no task was selected (empty var) then exit [ -z "${TITLE}" ] && echo "Cancelled." && exit 0 + ## Kill any pomodorrior process running for the current task + pkill --full -- "${TITLE}" + + ## Also kill any "sleep 60" remaining process + pkill --full -- "sleep 60" + ## Stop the selected task and exit task "${TITLE}" stop >/dev/null && exit 0 }