curve: allow .taskrc to be writeable, enabling contexts

This commit is contained in:
Anish Lakhwara 2023-06-04 19:02:03 +10:00
parent 067c583378
commit e92edf8366
2 changed files with 14 additions and 3 deletions

View file

@ -1,9 +1,13 @@
{ pkgs, config, lib, ... }:
{
# If you're setting up taskwarrior again, there's a task-setup.sh script in seafile
home.file = {
# WARN ugly hack
# taskwarrior needs write access to this file for centexts
# this way, we get a copy of the file, and we make sure it's writable
".taskrc".source = ./taskrc;
".taskrc".executable = true;
".taskrc".onChange = "cp ~/.taskrc ~/.taskrc2;rm ~/.taskrc;mv ~/.taskrc2 ~/.taskrc;chmod +w ~/.taskrc";
".local/bin/task-note".source = ./bin/task-note.py;
".task/keys/ca.cert".source = ./ca.cert;
".task/keys/public.cert".source = ./public.cert;

View file

@ -42,8 +42,10 @@ news.version=2.6.0
## Contexts
context.poor.read=-purchase
context.dev.read=+dev
context.ops.read=+ops
context.dev.read=+dev or +ops -work
context.home.read=-work
context.work.read=+work
context.work.write=+work
context.bucket.read=+in
context.focused=(priority:H or priority:M) -idea -backlog -finances urgency > 5.0
# context.work=+Work -idea -personal
@ -70,6 +72,11 @@ report.next.filter=(status:pending -in -backlog pro.not:ideas limit:0)
report.next.labels=ID,Active,Deps,P,Project,Tag,Recur,S,Due,Until,Description
report.next.columns=id,start.age,depends,priority,project,tags,recur,scheduled.countdown,due.relative,until.remaining,description
# Everything, including inbox
report.every.filter=(status:pending limit:0)
report.every.labels=ID,Active,Deps,P,Project,Tag,Recur,S,Due,Until,Description
report.every.columns=id,start.age,depends,priority,project,tags,recur,scheduled.countdown,due.relative,until.remaining,description
# Urgency
urgency.user.project.wait.coefficient=-10.0
urgency.user.project.craft.coefficient=1.9