Christophe-Marie Duquesne committed a872ec3

Making the usage example shorter

Comments (0)

Files changed (1)

 Here is how michel can be used. A crontask pulls every 15 minutes the
-default TODO list:
+default TODO list, and another one displays a notification during 10
+seconds every hour (requires notify-send).
-    */30 * * * * michel pull > ${HOME}/.TODO
-The following script is used to display a notification during 10 seconds every
-hour (requires notify-send - usually in a package called libnotify - and some
-notification-daemon - provided with most desktops)
-    #!/usr/bin/env bash
-    DISPLAY=:0.0
-    #params
-    todofile=$HOME/.TODO
-    icon='/usr/share/icons/gnome/32x32/status/dialog-information.png'
-    popupTime=10000
-    urgency='low'
-    if test -f $todofile; then
-        notification=`cat $todofile`
-        notify-send -u $urgency -t $popupTime -i "$icon" TODO "$notification"
-    fi
-Also called in a cron task, every hour:
-    1 * * * *
+    */15 * * * * michel pull > tmp/TODO && mv /tmp/TODO ~/.TODO
+    * * * * * DISPLAY=":0.0" notify-send -t 10000 TODO "$(cat ~/.TODO)"
 After you modify your TODO list, don't forget to push it!
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.