View Single Post
  #5   (View Single Post)  
Old 18th February 2010
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,128
Default

You can specify the size of the xterm in the -geometry option.
Code:
#!/bin/sh

font='lucidasanstypewriter-12'
size=132x55
x=0
y=0
title="'-- XML source ---'"

doxterm() {
xterm -ls \
    -fn ${font} \
    -bg ${background} \
    -geometry ${size}+${x}+${y}
    &
}

background="rgb:f/d/f"
#---------------------
y=0

offset=20
for x in $offset $((offset+1024)) $((offset+2048)) ; do
    doxterm 
done

background="rgb:d/f/f"
#---------------------
y=768

offset=20
for x in $offset $((offset+1024)) $((offset+2048)) ; do
    doxterm
done

background="rgb:f/f/d"
#---------------------
y=1536

offset=20
for x in $offset $((offset+1024)) $((offset+2048)) ; do
    doxterm 
done
EDIT: this script creates 9 xterms on all 9 OpenBSD virtual desktops/work spaces, or whatever you want to call them. Don't run it unless you understand it and did modify it
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote