Getting the screen resolution from the command line.

Grizzly Real_Grizz_Adams at yahoo.co.uk
Tue Mar 2 08:02:44 UTC 2010


On 01 March 2010 at 19:19, Brian McKee 
Enlightened me with this:-Re: Getting the screen resolution f

>On Mon, Mar 1, 2010 at 1:21 PM, Ray Parrish <crp at cmc.net> wrote:
>> I need to know if there is a command line method of retrieving the
>> screen resolution for a computer that a bash script is running on. I
>> need it to center a bar graph in an HTML page.
>
>Are you assuming the browser is full screen? 'Cause otherwise the
>screen resolution doesn't equal browser window size...

Why not use

<center>you graph stuf</center>

in your HTML, depending on how your graph stuff is done you can scale it to 
almost fill the HTML window




More information about the ubuntu-users mailing list