POV-Ray : Newsgroups : povray.unix : To the Unix gurus ! : Re: To the Unix gurus ! Server Time
28 Jul 2024 10:18:24 EDT (-0400)
  Re: To the Unix gurus !  
From: Nicolas Calimet
Date: 24 Jul 2002 05:10:37
Message: <3D3E6F0D.1060708@free.fr>
> with Pyvon taking up 2/3 of the upper

> screen and the terminal the 1/3 left.

> The best would be a script that test the screen resolution and does the 
> rest automatically.

	Just a little quick hack in c-shell demonstrating this with
two konsole windows. Cons: this is csh, any other shell would be
for sure much better; it does not take into account the size of
windows decorations and other toolbars; some applications (xterm)
do not resize properly. Pros: none  ;o)


#!/bin/csh

set width  = `xwininfo -root | grep Width | cut -d: -f2`
set height = `xwininfo -root | grep Height | cut -d: -f2`

set twothird = `echo "scale = 0; $height * 2./3" | bc -l`
set onethird = `echo "scale = 0; $height - $twothird" | bc -l`

konsole -geometry ${width}x${twothird}+0+0 &

konsole -geometry ${width}x${onethird}+0-0 &


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.