POV-Ray : Newsgroups : povray.unix : To the Unix gurus ! : Re: To the Unix gurus ! Server Time
28 Jul 2024 10:25:12 EDT (-0400)
  Re: To the Unix gurus !  
From: Fabien
Date: 27 Jul 2002 07:33:37
Message: <3D42844B.2020309@caramail.com>
I'll try that one, because Python for once does not seem to fit the bill.

Fabien HENON


Nicolas Calimet wrote:
>> 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.