#!/bin/bash

# open fancy-font, colored unicode xterms each color in its fixed place
#
# find out desired positions and sizes manually with e.g. 
# echo -n "$COLUMNS x $LINES "; xdotool getwindowfocus getwindowgeometry | awk '/^  Pos/{print $2}'
#
# to do: clever calculations knowing current screen resolution,
#   xrandr | awk '/\+$/{print $1}'


term() {
 /usr/bin/uxterm +sb -ls -fg \#fec -fa 'Liberation Mono:size=10:antialias=true' -bg \#${1} -geometry ${2}x${3}+${4}+${5} &
}


# adjust 9 xterms for 3840x1600 screen

/bin/cat <<-EOF | while read bgcolor width height  posx   posy; do term $bgcolor $width $height $posx $posy; done
                                433     86     30     5     4
                                532    120     28     5   460
                                343    120     47     5   886
                                544     80     30   699     4
                                441     90     30  1345     4
                                543    137     28   972   460
                                454    137     47   972   887
                                556     96     51  2073     4
                                356     96     54  2073   781
EOF
