You are not logged in.

#1 2012-12-01 16:09:27

From: UK
Registered: 2007-02-10
Posts: 61

Bash script to show refreshing task list in terminal

Hi all,

Let me preface this by admitting that I am useless at scripting, so hopefully there will be an easy way to do this!

I am trying to have a terminal running task (a todo list manager) that refreshes automatically. I would like to specify the window title for the terminal, so that awesome knows which tag to display it on.

I figured watch is the easiest way to accomplish this - this strips out the colours, but I can live with that.

If I run:

watch task

from a terminal, all works as expected and I get my todo list refreshing in the current terminal window.

However, if I run:

terminal --hold -e --title=tasklist -e "watch task"

it opens a terminal window in the desired awesome tag with the todo list in, but it does not update.

Instead of using watch, I have tried:

while [ true ]
    terminal --hold -e --title=tasklist -e "watch task"
    sleep 1

but this obviously opens many terminal windows all with the title "tasklist", rather than just one which is continually refreshed.

I am sure there must be an easy way to accomplish what I am after, but I can't find it! Any help would be gratefully received.

Thanks for all help,


Last edited by sjg (2012-12-01 16:10:18)


Board footer

Powered by FluxBB