scripts

various script and utils
git clone git://z3bra.org/scripts
Log | Files | Refs

commit cbf6f69e524a2e07a03a04d043c7f357de173bbc
parent 2950a0b1a6d49575bcafd06302159f000141b9bb
Author: z3bra <willy@mailoo.org>
Date:   Thu Apr  2 23:35:52 +0200

improve notii behavior

Diffstat:
notii | 26+++++++++-----------------
1 file changed, 9 insertions(+), 17 deletions(-)
diff --git a/notii b/notii @@ -1,8 +1,6 @@ #!/bin/sh -NICK=z3bra -FONT="-*-creep-*-*-*--16-*-*-*-*-*-*-1" -GEOM=180x20+1250+10 +NICK=${NICK:-z3bra} untimestamp() { sed 's/^[-: 0-9]*//' @@ -12,25 +10,19 @@ catchnick() { grep -v "<$NICK>" | grep "$NICK" } -cutmask() { - cut -f2 -} - -limitio() { - xargs tail -n1 +lastline() { + tail -n1 } -scroll() { - skroll -r -n28 -d0.1 -} - -barify() { - ifne lemonbar -d -B\#161616 -f $FONT -g $GEOM +cutmask() { + cut -f2 } -OUTFILE= +OUTFILE='' for f in $@; { OUTFILE="$OUTFILE -f $f" } -wendy -v -m 8 $OUTFILE | cutmask #| xargs tail -n1 | catchnick | untimestamp | scroll | barify +wendy -v -m 8 $OUTFILE | while read mask file; do + lastline < $file | catchnick | untimestamp | pops +done