Thursday Nov 06, 2008

Resizing Windows Sessions

From a partner of ours in New Zealand CCL and Ian Jones in our Auckland office is a script that resizes your Windows session when you move from Sun Ray to Sun Ray of different resolutions. This is based on card insertion using utaction.

Call the following script with utaction so this would be in your CAM mode script which Windows desktop would start this for each Windows session:

/opt/SUNWut/bin/utaction -c /opt/SUNRayAddons/utresize

Just save the following text between the -----  as the utresize script and save to /opt/SUNRayAddons:

---------------------------------------------------

#!/bin/sh
# utaction script to resize desktop
PATH=$PATH:/opt/SUNWut/bin:/opt/SUNWut/sbin:/usr/X11/bin

utxconfig -r auto

LOCALDEV=`basename $DTDEVROOT`
LOCALRES=`cat /var/opt/SUNWut/dispinfo/$LOCALDEV | grep CURRENT_RESOLUTION | cut -f 2 -d ":"` 2>&1 > /dev/null

xrandr -s $LOCALRES

 ---------------------------------------------------

I don't claim any credit for this but I thought I would post it for the benefit of everyone.

This together with the Windows ScreenLock package found are very neat tools to make Windows Sun Ray environments alot nicer.

http://wiki.sun-rays.org/index.php/SRSS_Addon:_SRWC_Lockscreen

Cyaz later....


Comments:

Post a Comment:
Comments are closed for this entry.