#!/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() {
 xterm -ls +sb -u8 -fg \#fed -bg \#${1} -geometry ${2}x${3}+${4}+${5} &> /dev/null &
}


# adjust 4 xterms for 2560x1440 screen

/bin/cat <<-EOF | while read bgcolor width height  posx  posy ; do term $bgcolor $width $height $posx $posy; done
                                434    120     37     4   273
                                454    120     32     4   897
                                343    120     88   858     9
                                455    120     88  1710     9
EOF
