Hi,
here is another simple gadget that you can use in combination with dzen
or dwm's statusbar.
It is a general purpose progressbar, perfectly suited to be used inside your
scripts, that displays the piped in values numerically and in a semi graphical
way.
Options:
-m : Value to be considered 100% (default: 100)
-w : Number of charcaters to be
considered 100% in the bar (default: 25 )
-s : Symbol represeting the
percentage value in the bar (default: = )
-l : label to be prepended to
the bar (default: '' )
Usage examples:
1) If your 100% mark changes dynamically:
echo "50 150" | dbar
^ ^
| |__ max. value
|
|__ value to display
Output: 33% [======== ]
2) Static 100% mark:
echo 25 | dbar -m 100 -l Sometext
Output: Sometext 25% [====== ]
3) Multiple runs:
for i in 2 20 50 75 80; do echo $i; sleep 1; done | dbar | dzen2
Output: Find out yourself.
Have fun, Rob.
Received on Fri Jun 29 2007 - 15:47:19 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:45:32 UTC