URI:
       twrapbar - scripts - various script and utils
  HTML git clone git://z3bra.org/scripts
   DIR Log
   DIR Files
   DIR Refs
       ---
       twrapbar (495B)
       ---
            1 #!/bin/sh
            2 #
            3 # spawn a status bar
            4 
            5 set -e
            6 
            7 # get screen size
            8 IFS='x' read w h <<< "$(xrandr | awk '/\*/ {print $1}')"
            9 
           10 icon="-*-stlarch-medium-*-*--10-*-*-*-*-*-*-*"
           11 font="*-gohufont-medium-*-*--11-*-*-*-*-*-iso10646-1"
           12 
           13 # two "useless" bars, for multi borders
           14 echo | bar -p -B\#ff1d1d1d -g $((w - 20))x32+10+10 & sleep 0.1
           15 echo | bar -p -B\#ff4c4c4c -g $((w - 26))x26+13+13 & sleep 0.1
           16 
           17 # and the actual bar
           18 while :; do
           19     mkbar
           20 done | bar -f "$icon,$font" -B\#ff1d1d1d -g $((w - 30))x22+15+15