tpops - scripts - various script and utils
 (HTM) git clone git://z3bra.org/scripts
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
       tpops (371B)
       ---
            1 #!/bin/sh
            2 #
            3 # z3bra - (c) wtfpl 2014
            4 # Create a small popup with the given text
            5 
            6 # bar options
            7 font="-*-creep-*-*-*--16-*-*-*-*-*-*-1"
            8 bg="#ff040201"
            9 fg="#ffdfd5d2"
           10 
           11 x=$(wattr w `lsw -r`)
           12 y=$(wattr h `lsw -r`)
           13 
           14 width=180
           15 height=20
           16 
           17 offy=10
           18 offx=$(( x - 14 - $width ))
           19 
           20 geom=${width}x${height}+${offx}+${offy}
           21 
           22 skroll -r -n25 | lemonbar -d -g $geom -f $font -B $bg -F $fg