nix: Make nix the root
Which means now I'll have to think about real prefixes in commit names.
This commit is contained in:
parent
550eed06e0
commit
ee178b7d57
190 changed files with 5 additions and 6 deletions
21
unprocessed/config/polybar/todo
Executable file
21
unprocessed/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