Louis-David Mitterrand <[email protected]> writes:

> Is there a way to get at the X screen resolution from inside the
> ~/.xsession script? Maybe with xrandr? Or a better tool?

Yes.  My script, which predates xrandr, uses xwininfo:

eval `xwininfo -root |\
    sed -ne 's/.*geometry \([0-9]*\)x\([0-9]*\).*/XWIDTH=\1; XHEIGHT=\2/p'`

-- 
Aaron M. Ucko, KB1CJC (amu at alum.mit.edu, ucko at debian.org)
http://www.mit.edu/~amu/ | http://stuff.mit.edu/cgi/finger/[email protected]


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to