> Also, the X and Y dimensions are set to 1920x1200 in the script, but can
> be overridden with -x and -y respectively.  I don't know how to grab
> those automatically.

If you're into running commands instead of doing Xlib from perl
directly, just run "xwininfo -root" and parse out the Width: and
Height: fields.  (For multi-monitor setups, just run one on each
screen, or maybe look at xdpyinfo and parse "screen #" and
"dimensions:" instead.)

Reply via email to