Skip to content

Commit

Permalink
add custom todoist module to polybar
Browse files Browse the repository at this point in the history
  • Loading branch information
redxtech committed Mar 19, 2024
1 parent 8e60881 commit 7e82644
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
1 change: 1 addition & 0 deletions home/gabe/features/cli/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
15 changes: 14 additions & 1 deletion home/gabe/features/desktop/bspwm/polybar/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ in {
"icon-menu"
"margin"
"bspwm"
"margin"
"polywins"
"todo"
];
center = concatStringsSep " " [ "player-mpris-tail" ];
right = concatStringsSep " " (config.profileVars.polybarModulesRight
Expand Down Expand Up @@ -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 = "<label>";
label = {
text = "%output%";
padding = 1;
};
};
"module/tray" = {
type = "internal/tray";

Expand Down
1 change: 1 addition & 0 deletions modules/home-manager/desktop/apps/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ in {
multiviewer-for-f1
neovide
pavucontrol
planify
playerctl
plexamp
qdirstat
Expand Down

0 comments on commit 7e82644

Please sign in to comment.