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
|