[Nottingham] Short cut to fix screen resolution

Moppett Iain Iain.Moppett at nottingham.ac.uk
Thu Dec 14 12:28:23 GMT 2006


Ta.

I shall try and write my first script along the lines of:

"Xrandr -s 0"

What I found on the web was...

-----

#!/bin/sh

# run game

res="$(xrandr -q|grep '^\*')"
if [[ "${res:1:1}" != 0 ]]; then
        xrandr -s 0
Fi

---------

Is there any need to include all the grep bits?  I have no idea what it
means.  I assume that its looking for a regular expression, but it all
seems abit complicated.

Iain

 

-----Original Message-----
From: nottingham-bounces at mailman.lug.org.uk
[mailto:nottingham-bounces at mailman.lug.org.uk] On Behalf Of Michael
Erskine
Sent: 08 December 2006 11:27
To: nottingham at mailman.lug.org.uk
Subject: Re: [Nottingham] Short cut to fix screen resolution

There's mention of gcompris using xrandr to render in fullscreen here: 
http://bugzilla.gnome.org/show_bug.cgi?id=331476

Perhaps there's a bug listed under launchpad for edubuntu.

Regards,
Michael Erskine.

--
Progress means replacing a theory that is wrong with one more subtly
wrong.

Send instant messages to your online friends
http://uk.messenger.yahoo.com 


_______________________________________________
Nottingham mailing list
Nottingham at mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/nottingham

This message has been checked for viruses but the contents of an attachment
may still contain software viruses, which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.




More information about the Nottingham mailing list