PDA

View Full Version : Detecting screen resolution



nibl
11-25-2005, 02:30 PM
Does anybody have a script or snippet to detect the current screen resolution?

I need the screen resolution for window placement. My remaster uses IceWM and Iconbox, and I want to place the iconbox and certain windows at startup.

Thanks,

nibl

ryanpq
11-25-2005, 07:25 PM
For the background image changing tools in Symphony OS I parse the results of xrandr to get the resolution. It is pretty easy.

nibl
11-30-2005, 01:48 AM
Thanks, that looks like what I need. 8)