1
0
Fork 0

Put taskrc in home-manager

This commit is contained in:
Malte Brandy 2018-06-20 01:51:29 +02:00
parent 7358c87e23
commit 262bb6234a
No known key found for this signature in database
GPG key ID: 226A2D41EF5378C9
2 changed files with 24 additions and 1 deletions

View file

@ -25,5 +25,5 @@ while True:
entered_command = rofi.communicate(input=tasklist)[0].decode('utf8').strip()
if entered_command == "":
sys.exit(0)
task_result = subprocess.Popen(["task", "rc.confirmation=no"] + entered_command.split(), stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
task_result = subprocess.Popen(["task", "rc.confirmation=no", "default.command=execute \"$HOME/bin/taskfilter\""] + entered_command.split(), stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
lastresult = '\n'.join([task_result[0].decode('utf8'), task_result[1].decode('utf8')]).strip()

View file

@ -6,6 +6,29 @@ config = mkIf config.m-0.taskwarrior.enable {
home = {
packages = [ pkgs.taskwarrior ];
file = {
".taskrc".text = ''
data.location=~/.task
default.command=default
alias.inbox=+PENDING -TAGGED limit:1
alias.inboxall=+PENDING -TAGGED
verbose=blank,header,footnote,label,new-id,affected,edit,special,sync
nag=
report.default.columns=id,tags,priority,description,due,start.active,project
report.default.description=List tasks
report.default.filter=status:pending -BLOCKED
report.default.labels=ID,Tags,,Beschreibung,Bis,Start,Projekt
report.default.sort=modified-
uda.partof.type=string
uda.partof.label=parent task
uda.generated.type=string
uda.gen_name.type=string
uda.gen_name.label=generator name
uda.gen_id.type=string
uda.gen_id.label=generator id
'';
taskwarrior-on-add-hook = {
target = ".task/hooks/on-add.eventd-notification";
text = ''