curve: allow .taskrc to be writeable, enabling contexts
This commit is contained in:
		
							parent
							
								
									067c583378
								
							
						
					
					
						commit
						e92edf8366
					
				|  | @ -1,9 +1,13 @@ | ||||||
| { pkgs, config, lib, ... }: | { pkgs, config, lib, ... }: | ||||||
| 
 | 
 | ||||||
| { | { | ||||||
|   # If you're setting up taskwarrior again, there's a task-setup.sh script in seafile |  | ||||||
|   home.file = { |   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".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; |     ".local/bin/task-note".source = ./bin/task-note.py; | ||||||
|     ".task/keys/ca.cert".source = ./ca.cert; |     ".task/keys/ca.cert".source = ./ca.cert; | ||||||
|     ".task/keys/public.cert".source = ./public.cert; |     ".task/keys/public.cert".source = ./public.cert; | ||||||
|  |  | ||||||
|  | @ -42,8 +42,10 @@ news.version=2.6.0 | ||||||
| 
 | 
 | ||||||
| ## Contexts | ## Contexts | ||||||
| context.poor.read=-purchase | context.poor.read=-purchase | ||||||
| context.dev.read=+dev | context.dev.read=+dev or +ops -work | ||||||
| context.ops.read=+ops | context.home.read=-work | ||||||
|  | context.work.read=+work | ||||||
|  | context.work.write=+work | ||||||
| context.bucket.read=+in | context.bucket.read=+in | ||||||
| context.focused=(priority:H or priority:M) -idea -backlog -finances urgency > 5.0 | context.focused=(priority:H or priority:M) -idea -backlog -finances urgency > 5.0 | ||||||
| # context.work=+Work -idea -personal | # 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.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 | 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 | ||||||
| urgency.user.project.wait.coefficient=-10.0 | urgency.user.project.wait.coefficient=-10.0 | ||||||
| urgency.user.project.craft.coefficient=1.9 | urgency.user.project.craft.coefficient=1.9 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue