Browse Source

Update script/status.sh example

Martin Duquesnoy 12 years ago
parent
commit
a9356c834b
1 changed files with 8 additions and 4 deletions
  1. 8 4
      scripts/status.sh

+ 8 - 4
scripts/status.sh

@@ -1,11 +1,15 @@
 #!/bin/sh
 #WMFS status.sh example file
-#Will be executed if put in ~/.config/wmfs/
-#Timing adjustable in wmfsrc (misc -> status_timing)
+
+TIMING=10
 
 statustext()
 {
-     wmfs -s "`date`"
+     echo "status default `date`" > /tmp/wmfs-$DISPLAY.fifo
 }
 
-while true; do statustext; sleep 10; done
+while true;
+do
+    statustext
+    sleep $TIMING
+done