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 }