From be4ddc5a89522288087f10759884d9689a4909c6 Mon Sep 17 00:00:00 2001 From: hektor Date: Fri, 5 May 2023 20:31:42 +0200 Subject: [PATCH] Update taskwarrior config --- .config/task/taskrc | 55 ++++++++++++++++++++++++++-------- .config/task/taskrc.d/setup.sh | 6 ++-- 2 files changed, 45 insertions(+), 16 deletions(-) diff --git a/.config/task/taskrc b/.config/task/taskrc index fb80a8b..864648e 100644 --- a/.config/task/taskrc +++ b/.config/task/taskrc @@ -1,10 +1,22 @@ -data.location=~/.task +data.location=$XDG_DATA_HOME/task/ +hooks.location=$XDG_CONFIG_HOME/task/hooks/ include ./taskrc.d/server - -# Theme include /usr/share/doc/task/rc/light-256.theme +color.active=bold white on black +color.alternate= +color.scheduled= +color.until= +color.blocking=gray0 +color.blocked=gray15 +color.uda.priority.H= +color.uda.priority.M= +color.uda.priority.L= +color.due= +color.due.today= +color.overdue= + uda.reviewed.type=date uda.reviewed.label=Reviewed report._reviewed.description=Tasksh review report. Adjust the filter to your needs. @@ -12,17 +24,29 @@ report._reviewed.columns=uuid report._reviewed.sort=reviewed+,modified+ report._reviewed.filter=( reviewed.none: or reviewed.before:now-6days ) and ( +PENDING or +WAITING ) -# Changes to `all` report: -# -# due->due.remaining -# report.all.columns=id,status.short,uuid.short,start.active,entry.age,end.age,depends.indicator,priority,project.parent,tags.count,recur.indicator,wait.remaining,scheduled.remaining,due.remaining,until.remaining,description -# report.all.labels=ID,St,UUID,A,Age,Done,D,P,Project,Tags,R,Wait,Sch,Due,Until,Description - -# Description report -report.description.columns=description - -# Adjust defaults alias.burndown=burndown.daily +alias.a=add +alias.rm=delete +alias.e=modify + +# +# Custom reports +# + +# Report: inbox + +report.in.columns=id,description +report.in.labels=ID,Description +report.in.description=Inbox (tasks with no project) +report.in.filter=status:pending and project: + +report.recent.columns=id,description,entry +report.recent.labels=ID,Description,Age +report.recent.description=Recently added +report.recent.sort=entry+ + +report.minimal.columns=id,description +report.minimal.labels=, # Set urgencies for certain projects urgency.user.project.studies.coefficient=1.0 @@ -44,3 +68,8 @@ urgency.uda.priority.L.coefficient=-1.0 search.case.sensitive=no context.cc.read=pro:studies.cc context.cc.write=pro:studies.cc +context.home.read=project:home +context.home.write=project:home +context.rl.read=project:studies.rl +context.rl.write=project:studies.rl +news.version=2.6.0 diff --git a/.config/task/taskrc.d/setup.sh b/.config/task/taskrc.d/setup.sh index e171c00..7d9a2fb 100755 --- a/.config/task/taskrc.d/setup.sh +++ b/.config/task/taskrc.d/setup.sh @@ -6,9 +6,9 @@ source ~/.env config_file=~/.config/task/taskrc.d/server -echo "taskd.certificate=~/.task/default-client.cert.pem" > $config_file -echo "taskd.key=~/.task/default-client.key.pem" >> $config_file -echo "taskd.ca=~/.task/ca.cert.pem" >> $config_file +echo "taskd.certificate=$XDG_DATA_HOME/task/default-client.cert.pem" > $config_file +echo "taskd.key=$XDG_DATA_HOME/task/default-client.key.pem" >> $config_file +echo "taskd.ca=$XDG_DATA_HOME/task/ca.cert.pem" >> $config_file echo "taskd.trust=ignore hostname" >> $config_file echo "taskd.server=$TASKD_SERVER:$TASKD_PORT" >> $config_file echo "taskd.credentials=$TASKD_CREDS" >> $config_file