1
0
mirror of https://github.com/kmein/niveum synced 2026-03-18 19:11:08 +01:00

feat(i3): improve task in bar

This commit is contained in:
Kierán Meinhardt
2020-04-27 12:06:37 +02:00
parent c7101d432c
commit 68792c4256

View File

@@ -80,9 +80,14 @@
} }
{ {
block = "custom"; block = "custom";
interval = 60; interval = 20;
command = pkgs.writers.writeDash "tasks" '' command = pkgs.writers.writeDash "tasks" ''
${pkgs.todo-txt-cli}/bin/todo.sh list | tail -n 1 | ${pkgs.gawk}/bin/awk '{ print " " $2 }' ${pkgs.todo-txt-cli}/bin/todo.sh list '(.)' \
| tail -n 1 \
| ${pkgs.gawk}/bin/awk '{ print " " $2 "/" $4 }'
'';
on_click = pkgs.writers.writeDash "show-tasks" ''
${pkgs.st}/bin/st -c floating -e ${pkgs.dash}/bin/dash -c "${pkgs.todo-txt-cli}/bin/todo.sh list && sleep 2"
''; '';
} }
{ {