scripts

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

commit d602db1dc15ba4f134785eabbfe49e01ec093f96
parent 443f2c930ea38941f2abc330ad84ff8d839adc94
Author: z3bra <willy@mailoo.org>
Date:   Fri Oct 17 11:58:05 +0200

bar wrapper

Diffstat:
wrapbar | 20++++++++++++++++++++
1 file changed, 20 insertions(+), 0 deletions(-)
diff --git a/wrapbar b/wrapbar @@ -0,0 +1,20 @@ +#!/bin/sh +# +# spawn a status bar + +set -e + +# get screen size +IFS='x' read w h <<< "$(xrandr | awk '/\*/ {print $1}')" + +icon="-*-stlarch-medium-*-*--10-*-*-*-*-*-*-*" +font="*-gohufont-medium-*-*--11-*-*-*-*-*-iso10646-1" + +# two "useless" bars, for multi borders +echo | bar -p -B\#ff1d1d1d -g $((w - 20))x32+10+10 & sleep 0.1 +echo | bar -p -B\#ff4c4c4c -g $((w - 26))x26+13+13 & sleep 0.1 + +# and the actual bar +while :; do + ~/bin/mkbar +done | bar -f "$icon,$font" -B\#ff1d1d1d -g $((w - 30))x22+15+15 &