diff --git a/home/gabe/features/cli/default.nix b/home/gabe/features/cli/default.nix index a3c1981e..07e3ea30 100644 --- a/home/gabe/features/cli/default.nix +++ b/home/gabe/features/cli/default.nix @@ -183,6 +183,7 @@ with lib; { rcp = "rclone copy -P --transfers=20"; rgu = "rg -uu"; rsync = "rsync --info=progress2 -r"; + todoist = mkIf (hasPackage "todoist") "todoist --color"; xclip = "xclip -selection c"; vrg = mkIf (hasNeovim && hasRipgrep) "nvimrg"; diff --git a/home/gabe/features/desktop/bspwm/polybar/default.nix b/home/gabe/features/desktop/bspwm/polybar/default.nix index d26ef21d..9dd149d3 100644 --- a/home/gabe/features/desktop/bspwm/polybar/default.nix +++ b/home/gabe/features/desktop/bspwm/polybar/default.nix @@ -100,8 +100,8 @@ in { "icon-menu" "margin" "bspwm" - "margin" "polywins" + "todo" ]; center = concatStringsSep " " [ "player-mpris-tail" ]; right = concatStringsSep " " (config.profileVars.polybarModulesRight @@ -610,6 +610,19 @@ in { }; }; }; + "module/todo" = { + type = "custom/script"; + + exec = + "${pkgs.todoist}/bin/todoist list --filter 'today & !#daily' | ${pkgs.gawk}/bin/awk '{print substr($0, index($0, $6)) \" -> \" $4}'"; + interval = 60; + + format = "