Louis-David Mitterrand <vindex+lists-debia...@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/?...@monk.mit.edu -- To UNSUBSCRIBE, email to debian-x-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org