From: Colin Brough on 10 Jan 2010 11:48 Martin Gregorie wrote: > On Fri, 08 Jan 2010 14:42:20 +0000, Colin Brough wrote: > >> Obviously I want the scale and geometry stuff to be suitable for the >> display I'm on, but would prefer not to have to maintain multiple sets >> of aliases on the different machines. >> > Why not take a leaf out of the way you configure daemon services in > RedHat distros? > > - Modify your script to get its arguments by reading in a config > file with a standard name. Use something like "source /etc/ggl.conf" > > - The config file just contains a set of lines like: > > ORIENTATION="seascape" > SCALE="0" > GEOMETRY="1220x870+0+0" That, or something similar, was exactly where I was hoping to go - just needed the pointers to xrandr or xwininfo to get the screen resolution information. Thanks muchly! Cheers Colin -- ---------------------------------------------------------------------- Colin Brough Colin.Brough(a)blueyonder.invalid (Replace .invalid with .co.uk to reply)
First
|
Prev
|
Pages: 1 2 Prev: app or script to write large files to mutiple dvds or isos Next: fedora 12 install woes |