471,831 Members | 1,186 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,831 software developers and data experts.

Re: Getting current screen resolution

On Monday 09 June 2008, Thomas Morton wrote:
This is a "thing" that has been annoying me all morning: and I can't
work out how to do it.

I need a way to get the DPI or screen resolution of the monitor that a
script is currently runnign on.

I have a way in Windows but it doesnt port to Unix (which is important).

Any ideas?

run xdpyinfo and pull the values you need from that.
Jun 27 '08 #1
0 782

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by JIM.H. | last post: by
1 post views Thread by Carlos Albert | last post: by
5 posts views Thread by Maxi | last post: by
4 posts views Thread by pedestrian via DotNetMonster.com | last post: by
9 posts views Thread by Steve Wright | last post: by
3 posts views Thread by Joe Withawk | last post: by
3 posts views Thread by Thomas Morton | last post: by
reply views Thread by NeoPa | last post: by
reply views Thread by YellowAndGreen | last post: by
reply views Thread by aboka | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.