diff options
author | Soispha <soispha@vhack.eu> | 2023-10-01 17:08:33 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-10-01 18:23:53 +0200 |
commit | 3a9a44daac682fcf57ee312788ffc14867c412f9 (patch) | |
tree | a7da1d6f0a6b9623d7b37c3877cf2a41f902cb6e /hm/soispha/conf/taskwarrior/default.nix | |
parent | feat(hm/pkgs/scrs/neorg): Add support for opening current task context (diff) | |
download | nixos-config-3a9a44daac682fcf57ee312788ffc14867c412f9.zip |
feat(hm/conf/taskwarrior): Add hook scripts
Diffstat (limited to '')
-rw-r--r-- | hm/soispha/conf/taskwarrior/default.nix | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/hm/soispha/conf/taskwarrior/default.nix b/hm/soispha/conf/taskwarrior/default.nix index 78bcacd0..3d647482 100644 --- a/hm/soispha/conf/taskwarrior/default.nix +++ b/hm/soispha/conf/taskwarrior/default.nix @@ -1,4 +1,8 @@ {...}: { + imports = [ + ./hooks + ]; + programs.taskwarrior = let mkContext = project: { inherit (project) name; @@ -13,6 +17,7 @@ context = builtins.listToAttrs (builtins.map mkContext (import ./projects {})); in { enable = true; + colorTheme = ./nord.theme; config = { news.version = "2.6.0"; complete.all.tags = true; @@ -23,17 +28,22 @@ regex = true; weekstart = "Monday"; uda = { - neorg = { - type = "string"; - label = "Neorg"; + total_active_time = { + type = "duration"; + label = "Total active time"; }; }; + alias = { + a = "add"; + bd = "burndown.daily"; + cx = "context"; + e = "edit"; + mod = "modify"; + n = "execute neorg --task"; + }; color = true; inherit context; }; - extraConfig = '' - include ${./nord.theme} - ''; }; } |