Re: getting X resolution from ~/.xsession?
Louis-David Mitterrand <vindex+lists-debian-x@apartia.org> 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/?amu@monk.mit.edu
Reply to: