diff options
Diffstat (limited to 'pkgs/dwmblocks/todos.nix')
-rw-r--r-- | pkgs/dwmblocks/todos.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/dwmblocks/todos.nix b/pkgs/dwmblocks/todos.nix new file mode 100644 index 0000000..510ff7e --- /dev/null +++ b/pkgs/dwmblocks/todos.nix @@ -0,0 +1,10 @@ +pkgs: + pkgs.writeScriptBin "todos" '' + #!${pkgs.stdenv.shell} + case $BLOCK_BUTTON in + 1) notify-send "Tasks" "\n$(todoist l | cut -d\ -f5- | sed 's/^/* /')" ;; + 6) "$TERMINAL" -e "$EDITOR" "$0" ;; + esac + + echo "✅$(todoist list | wc -l)" + '' |