Long time, no commit, big ol' changes though
This commit is contained in:
parent
3c9e2c3279
commit
501f1f4066
19 changed files with 271 additions and 352 deletions
21
config/polybar/todo
Executable file
21
config/polybar/todo
Executable file
|
@ -0,0 +1,21 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
CALDIR="$HOME/.vdirsyncer/currentCalendars"
|
||||
|
||||
function status() {
|
||||
ls "$CALDIR" | while read account
|
||||
do
|
||||
displayname="$(cat "$CALDIR/$account/displayname")"
|
||||
color="$(cat "$CALDIR/$account/color")"
|
||||
nb="$(todo list "$displayname" | grep -v "^$" | wc -l)"
|
||||
|
||||
if [ $nb -gt 0 ]
|
||||
then
|
||||
echo -n " %{F$color}$nb%{F-}"
|
||||
fi
|
||||
done
|
||||
# Newline to tell polybar to update in any case
|
||||
echo
|
||||
}
|
||||
|
||||
status
|
Loading…
Add table
Add a link
Reference in a new issue