diff --git a/rofi-task.sh b/rofi-task.sh index e74c203..8ed622d 100755 --- a/rofi-task.sh +++ b/rofi-task.sh @@ -32,7 +32,8 @@ display_current_task() { # {{{ ## Display active tasks list and get title from the choosen one TITLE=$(rofi -location 2 -lines 5 -no-auto-select -i -dmenu -p "RUNNING task(s)" -color-enabled -color-normal "${blue},${black},${blue},${black},${blue}" -color-window "${blue},${blue}" < "${TASKW_CURRENT_LIST}" | - cut --delimiter=" " --field=2) + cut --delimiter=" " --field=2 | + sed "s/[0-9]//g") ID=$(task "${TITLE}" simpleid | grep --after-context=2 -- ID | tail --lines=1 || return 0) ## Remove temp file