Guest User

Hund Status.sh

a guest
Jul 12th, 2011
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. ## Loading the global settings for wmfs
  4. source $HOME/.config/wmfs/wmfsrc
  5.  
  6. NBLINE=`$CONKYCMD -i 1 | wc -l`
  7.  
  8. ## Information importante /!\
  9. ## Conky est lancé dans autostart.sh
  10.  
  11. color0="echo \\\\#DFAF8F\\\\"
  12. color1="echo \\\\#BEBEBE\\\\"
  13. color2="echo \\\\#EE0000\\\\"
  14.  
  15. TXT=`cat $FICHIER | tail -n $NBLINE`
  16. TXT="<c2>$TXT"
  17. TXT=`echo $TXT | sed 's/\[ \([A-Za-z ]*:\) \([^]]*\) \]/[ <c0>\1 <c1>\2<c2> ]/g'`
  18.  
  19. for i in $(echo "0 1 2"); do
  20. colr="\$color$i"
  21. color=`eval "$colr"`
  22. pattern="s/<c$i>/$color/g"
  23. TXT=`echo $TXT | sed "$pattern"`
  24. done
  25.  
  26. wmfs -s 0 "$TXT"
  27. exit 0
Advertisement
Add Comment
Please, Sign In to add comment