Skip to content

Instantly share code, notes, and snippets.

@kowey
Created December 22, 2009 10:44
Show Gist options
  • Save kowey/261664 to your computer and use it in GitHub Desktop.
Save kowey/261664 to your computer and use it in GitHub Desktop.
Config { font = "-misc-fixed-*-*-*-*-10-*-*-*-*-*-*-*"
, bgColor = "#777777"
, fgColor = "#ee9a00"
, position = Top
, commands = [ Run Date "%a %_d %b %Y %H:%M" "date" 600
, Run Com "/home/me/opt/bin/count-gtd" ["ACTION"," "] "gtd-action" 600
, Run Com "/home/me/opt/bin/count-gtd" ["WAITING"," "] "gtd-waiting" 600
, Run StdinReader
]
, sepChar = "%"
, alignSep = "}{"
, template = "%gtd-action% %gtd-waiting% %StdinReader% }{ %date%"
}
#!/bin/bash
TODO=${HOME}/synch/.todo.txt
WF=":WF"
echo -n "$1: "
if [ "$1" == "WAITING" ]; then
grep $WF ${TODO} | wc -l
else
grep -v $WF ${TODO} | wc -l
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment