From bd3d114f9513ddda9a2947ca1f6c995638c2006c Mon Sep 17 00:00:00 2001 From: Alexis Hovorka Date: Tue, 22 Dec 2020 17:57:12 -0700 Subject: [feat] Add a few basic Taskwarrior contexts --- base.yaml | 3 +- base/task/main.rc | 125 +++++++++++++++++++++++++++++++++++++++++++++++++++ base/taskrc | 130 ------------------------------------------------------ 3 files changed, 127 insertions(+), 131 deletions(-) create mode 100644 base/task/main.rc delete mode 100644 base/taskrc diff --git a/base.yaml b/base.yaml index 5e78b1b..48b11ec 100644 --- a/base.yaml +++ b/base.yaml @@ -27,10 +27,10 @@ ~/.gitmessage: base/gitmessage ~/.makepkg.conf: base/makepkg.conf ~/.npmrc: base/npmrc + ~/.task/main.rc: base/task/main.rc ~/.task/task.triggers: base/task/task.triggers ~/.task/taskwarrior-holidays.sh: base/task/taskwarrior-holidays.sh ~/.task/taskwarrior-holidays.rc: base/task/taskwarrior-holidays.rc - ~/.taskrc: base/taskrc ~/.tmux.conf: base/tmux.conf ~/.vim/autoload: base/vim/autoload ~/.vim/colors: base/vim/colors @@ -46,4 +46,5 @@ ~/.zshrc: base/zshrc - shell: + - grep "include ~/.task/main.rc" ~/.taskrc || echo "include ~/.task/main.rc" >>~/.taskrc - touch ~/.hushlogin diff --git a/base/task/main.rc b/base/task/main.rc new file mode 100644 index 0000000..18e1e0b --- /dev/null +++ b/base/task/main.rc @@ -0,0 +1,125 @@ +# FILES ====---- + +data.location=~/.task +default.command=ready + +include ~/.task/server/server-config.rc +include ~/.task/taskwarrior-holidays.rc +calendar.holidays=sparse + +verbose=blank,footnote,label,new-id,affected,context + +# URGENCY TWEAKS ====---- + +#urgency.active.coefficient=500 +urgency.blocking.coefficient=1 +urgency.annotations.coefficient=0 + +# CONTEXTS ====---- + +context.work=project:Work +context.home=project.not:Work +context.school=project:School + +# MY THEME ====---- + +# Color theme (uncomment one to use) +#include /usr/share/doc/task/rc/light-16.theme +#include /usr/share/doc/task/rc/light-256.theme +#include /usr/share/doc/task/rc/dark-16.theme +#include /usr/share/doc/task/rc/dark-256.theme +#include /usr/share/doc/task/rc/dark-red-256.theme +#include /usr/share/doc/task/rc/dark-green-256.theme +#include /usr/share/doc/task/rc/dark-blue-256.theme +#include /usr/share/doc/task/rc/dark-violets-256.theme +#include /usr/share/doc/task/rc/dark-yellow-green.theme +#include /usr/share/doc/task/rc/dark-gray-256.theme +#include /usr/share/doc/task/rc/dark-gray-blue-256.theme +#include /usr/share/doc/task/rc/solarized-dark-256.theme +#include /usr/share/doc/task/rc/solarized-light-256.theme +#include /usr/share/doc/task/rc/no-color.theme + +rule.precedence.color=deleted,completed,active,keyword.,tag.,project.,overdue,scheduled,due.today,due,blocked,blocking,recurring,tagged,uda. + +# General decoration +color.label=bold +color.label.sort=bold yellow +color.alternate=on color18 +color.header=color19 +color.footnote=color8 +color.warning=bold red +color.error=bold white on red +color.debug=color4 + +# Task state +color.completed= +color.deleted= +color.active=bold color15 on color16 +color.recurring=blue +color.scheduled=yellow +color.until=yellow +color.blocked=color8 +#color.blocking=black on color20 +color.blocking=cyan + +# Project +#color.project.none= + +# Priority +color.uda.priority.H=color7 +color.uda.priority.L=color8 +color.uda.priority.M=color20 + +# Tags +color.tagged=color17 +color.tag.next=color16 +#color.tag.none= + +# Due +color.due.today=bold red +color.due=red +color.overdue=bold red + +# Report: burndown +color.burndown.done=on green +color.burndown.pending=on red +color.burndown.started=on yellow + +# Report: history +color.history.add=color0 on red +color.history.delete=on color18 +color.history.done=color0 on green + +# Report: summary +color.summary.background=white on black +color.summary.bar=black on green + +# Command: calendar +color.calendar.due.today=color15 on red +color.calendar.due=color15 on color8 +color.calendar.holiday=color0 on yellow +color.calendar.overdue=color15 on red +color.calendar.today=color0 on blue +color.calendar.weekend=on color18 +color.calendar.weeknumber=color19 + +# Command: sync +color.sync.added=green +color.sync.changed=yellow +color.sync.rejected=red + +# Command: undo +#color.undo.after=color2 +#color.undo.before=color1 + +# OTHER THINGS ====---- + +report.ready.columns=id,start.age,entry.age,priority,project,tags,recur.indicator,scheduled.countdown,due.countdown,until.remaining,description,urgency +report.ready.labels=ID,Active,Age,P,Project,Tags,R,S,Due,Until,Description,Urg + +uda.reviewed.type=date +uda.reviewed.label=Reviewed +report._reviewed.description=Tasksh review report. Adjust the filter to your needs. +report._reviewed.columns=uuid +report._reviewed.sort=reviewed+,modified+ +report._reviewed.filter=( reviewed.none: or reviewed.before:now-6days ) and ( +PENDING or +WAITING ) diff --git a/base/taskrc b/base/taskrc deleted file mode 100644 index cfc7d88..0000000 --- a/base/taskrc +++ /dev/null @@ -1,130 +0,0 @@ -# [Created by task 2.5.1 10/23/2020 18:51:36] -# Taskwarrior program configuration file. -# For more documentation, see http://taskwarrior.org or try 'man task', 'man task-color', -# 'man task-sync' or 'man taskrc' - -# Here is an example of entries that use the default, override and blank values -# variable=foo -- By specifying a value, this overrides the default -# variable= -- By specifying no value, this means no default -# #variable=foo -- By commenting out the line, or deleting it, this uses the default - -# Use the command 'task show' to see all defaults and overrides - -# Files -data.location=~/.task -default.command=ready - -include ~/.task/server/server-config.rc -include ~/.task/taskwarrior-holidays.rc -calendar.holidays=sparse - -verbose=blank,footnote,label,new-id,affected - -# URGENCY TWEAKS ====---- - -#urgency.active.coefficient=500 -urgency.blocking.coefficient=1 -urgency.annotations.coefficient=0 - -# MY THEME ====---- - -# Color theme (uncomment one to use) -#include /usr/share/doc/task/rc/light-16.theme -#include /usr/share/doc/task/rc/light-256.theme -#include /usr/share/doc/task/rc/dark-16.theme -#include /usr/share/doc/task/rc/dark-256.theme -#include /usr/share/doc/task/rc/dark-red-256.theme -#include /usr/share/doc/task/rc/dark-green-256.theme -#include /usr/share/doc/task/rc/dark-blue-256.theme -#include /usr/share/doc/task/rc/dark-violets-256.theme -#include /usr/share/doc/task/rc/dark-yellow-green.theme -#include /usr/share/doc/task/rc/dark-gray-256.theme -#include /usr/share/doc/task/rc/dark-gray-blue-256.theme -#include /usr/share/doc/task/rc/solarized-dark-256.theme -#include /usr/share/doc/task/rc/solarized-light-256.theme -#include /usr/share/doc/task/rc/no-color.theme - -rule.precedence.color=deleted,completed,active,keyword.,tag.,project.,overdue,scheduled,due.today,due,blocked,blocking,recurring,tagged,uda. - -# General decoration -color.label=bold -color.label.sort=bold yellow -color.alternate=on color18 -color.header=color19 -color.footnote=color8 -color.warning=bold red -color.error=bold white on red -color.debug=color4 - -# Task state -color.completed= -color.deleted= -color.active=bold color15 on color16 -color.recurring=blue -color.scheduled=yellow -color.until=yellow -color.blocked=color8 -#color.blocking=black on color20 -color.blocking=cyan - -# Project -#color.project.none= - -# Priority -color.uda.priority.H=color7 -color.uda.priority.L=color8 -color.uda.priority.M=color20 - -# Tags -color.tagged=color17 -color.tag.next=color16 -#color.tag.none= - -# Due -color.due.today=bold red -color.due=red -color.overdue=bold red - -# Report: burndown -color.burndown.done=on green -color.burndown.pending=on red -color.burndown.started=on yellow - -# Report: history -color.history.add=color0 on red -color.history.delete=on color18 -color.history.done=color0 on green - -# Report: summary -color.summary.background=white on black -color.summary.bar=black on green - -# Command: calendar -color.calendar.due.today=color15 on red -color.calendar.due=color15 on color8 -color.calendar.holiday=color0 on yellow -color.calendar.overdue=color15 on red -color.calendar.today=color0 on blue -color.calendar.weekend=on color18 -color.calendar.weeknumber=color19 - -# Command: sync -color.sync.added=green -color.sync.changed=yellow -color.sync.rejected=red - -# Command: undo -#color.undo.after=color2 -#color.undo.before=color1 - -# OTHER THINGS ====---- - -report.ready.columns=id,start.age,entry.age,priority,project,tags,recur.indicator,scheduled.countdown,due.countdown,until.remaining,description,urgency -report.ready.labels=ID,Active,Age,P,Project,Tags,R,S,Due,Until,Description,Urg - -uda.reviewed.type=date -uda.reviewed.label=Reviewed -report._reviewed.description=Tasksh review report. Adjust the filter to your needs. -report._reviewed.columns=uuid -report._reviewed.sort=reviewed+,modified+ -report._reviewed.filter=( reviewed.none: or reviewed.before:now-6days ) and ( +PENDING or +WAITING ) -- cgit v1.2.3-54-g00ecf