powerline-taskwarrior
Published:
Basically all of my work time, both paid and volunteer, is organised by my taskwarrior database.
Sometimes it can be hard to keep focus, and in times where you find yourself forgetting what you were doing, a handy reminder can get you back on track quickly.
If you’re a powerline user then here’s something to keep you on track:
apt install python-powerline-taskwarrior python3-powerline-taskwarrior
You can configure powerline to then show you your context, active task or next task with:
[
{
"function": "powerline_taskwarrior.context",
"priority": 70
},
{
"function": "powerline_taskwarrior.active_task",
"priority": 70
},
{
"function": "powerline_taskwarrior.next_task",
"priority": 70
}
]
I’ve got the context on the left, and the active task on the right. Still playing with this to see where the optimal placement is for my workflow.
Note: You do need to configure some colors otherwise the segments will not work. The required colors are:
{
"taskwarrior:context": "information:regular",
"taskwarrior:active_id": { "bg": "mediumgreen", "fg": "black", "attrs": [] },
"taskwarrior:active_desc": { "bg": "green", "fg": "black", "attrs": [] },
"taskwarrior:next_id": { "bg": "brightyellow", "fg": "black", "attrs": [] },
"taskwarrior:next_desc": { "bg": "yellow", "fg": "black", "attrs": [] }
}