tbar wrapper - scripts - various script and utils
 (HTM) git clone git://z3bra.org/scripts
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
 (DIR) commit d602db1dc15ba4f134785eabbfe49e01ec093f96
 (DIR) parent 443f2c930ea38941f2abc330ad84ff8d839adc94
 (HTM) Author: z3bra <willy@mailoo.org>
       Date:   Fri, 17 Oct 2014 11:58:05 +0200
       
       bar wrapper
       
       Diffstat:
         A wrapbar                             |      20 ++++++++++++++++++++
       
       1 file changed, 20 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/wrapbar b/wrapbar
       t@@ -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 &