From 4d8f53f3de585261124c5147fbe39f704a5eeaf3 Mon Sep 17 00:00:00 2001 From: Soispha Date: Sun, 1 Oct 2023 13:48:42 +0200 Subject: feat(hm/conf/taskwarrior): Add first config for neorg ⇄ taskwarrior interop MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hm/soispha/conf/taskwarrior/default.nix | 35 +++++++- hm/soispha/conf/taskwarrior/nord.theme | 100 +++++++++++++++++++++++ hm/soispha/conf/taskwarrior/projects/default.nix | Bin 0 -> 381 bytes 3 files changed, 132 insertions(+), 3 deletions(-) create mode 100644 hm/soispha/conf/taskwarrior/nord.theme create mode 100644 hm/soispha/conf/taskwarrior/projects/default.nix (limited to 'hm/soispha/conf/taskwarrior') diff --git a/hm/soispha/conf/taskwarrior/default.nix b/hm/soispha/conf/taskwarrior/default.nix index 803d2d5d..78bcacd0 100644 --- a/hm/soispha/conf/taskwarrior/default.nix +++ b/hm/soispha/conf/taskwarrior/default.nix @@ -1,10 +1,39 @@ {...}: { - programs.taskwarrior = { + programs.taskwarrior = let + mkContext = project: { + inherit (project) name; + value = { + read = "project:${project.name}"; + write = "project:${project.name}"; + rc = { + neorg_path = "${project.prefix}/${project.name}/index.norg"; + }; + }; + }; + context = builtins.listToAttrs (builtins.map mkContext (import ./projects {})); + in { enable = true; - colorTheme = "dark-blue-256"; config = { news.version = "2.6.0"; - # TODO: Add something here <2023-09-30> + complete.all.tags = true; + list.all = { + projects = true; + tags = true; + }; + regex = true; + weekstart = "Monday"; + uda = { + neorg = { + type = "string"; + label = "Neorg"; + }; + }; + color = true; + + inherit context; }; + extraConfig = '' + include ${./nord.theme} + ''; }; } diff --git a/hm/soispha/conf/taskwarrior/nord.theme b/hm/soispha/conf/taskwarrior/nord.theme new file mode 100644 index 00000000..9399a8ae --- /dev/null +++ b/hm/soispha/conf/taskwarrior/nord.theme @@ -0,0 +1,100 @@ +# Copyright (C) 2016-present Arctic Ice Studio +# Copyright (C) 2016-present Sven Greb + +# Project: igloo +# Repository: https://github.com/arcticicestudio/igloo +# License: MIT +# References: +# https://taskwarrior.org/docs/themes.html +# task-color(5) +# taskrc(5) + +rule.precedence.color=deleted,completed,active,keyword.,tag.,project.,overdue,scheduled,due.today,due,blocked,blocking,recurring,tagged,uda. + +#+---------+ +#+ General + +#+---------+ +color.label= +color.label.sort= +color.alternate= +color.header=bold blue +color.footnote=cyan +color.warning=bold black on yellow +color.error=bold white on red +color.debug=magenta + +#+-------------+ +#+ Task States + +#+-------------+ +color.completed=green +color.deleted=red +color.active=bold black on cyan +color.recurring= +color.scheduled=white on black +color.until=white on bright black +color.blocked=yellow on black +color.blocking=bold yellow on black + +#+----------+ +#+ Projects + +#+----------+ +color.project.none= + +#+----------+ +#+ Priority + +#+----------+ +color.uda.priority.H=bold cyan +color.uda.priority.M=bold blue +color.uda.priority.L=bold black + +#+------+ +#+ Tags + +#+------+ +color.tag.next= +color.tag.none= +color.tagged= + +#+-----+ +#+ Due + +#+-----+ +color.due=blue +color.due.today=cyan on black +color.overdue=bold red + +#+---------+ +#+ Reports + +#+---------+ +color.burndown.done=bold black on cyan +color.burndown.pending=black on bright cyan +color.burndown.started=black on blue + +color.history.add=bold black on blue +color.history.delete=bright white on bold black +color.history.done=bold black on cyan + +color.summary.background=bright white on black +color.summary.bar=black on cyan + +#+----------+ +#+ Calendar + +#+----------+ +color.calendar.due=bold black on blue +color.calendar.due.today=bold black on cyan +color.calendar.holiday=bold blue on white +color.calendar.overdue=white on red +color.calendar.today=bold black on cyan +color.calendar.weekend=bright white on bright black +color.calendar.weeknumber=bold black + +#+-----------------+ +#+ Synchronization + +#+-----------------+ +color.sync.added=green +color.sync.changed=yellow +color.sync.rejected=red + +#+------+ +#+ Undo + +#+------+ +color.undo.after=green +color.undo.before=red diff --git a/hm/soispha/conf/taskwarrior/projects/default.nix b/hm/soispha/conf/taskwarrior/projects/default.nix new file mode 100644 index 00000000..01c3f7cf Binary files /dev/null and b/hm/soispha/conf/taskwarrior/projects/default.nix differ -- cgit 1.4.1