On Sat, 2005-02-19 at 22:13 -0600, Jason Martens wrote: > > I dock my laptop, and I want to use the external screen, and disable the > internal screen. However, I don't want it disabled when I'm not docked. > ~ Is there some way (manually or automatically) to reconfigure X for each > configuration? I have working config files for both, but it would be > nice to automate it. I've thought of writing a script to do this, but I > don't want to re-invent the wheel if someone has already done so. > However, if you have a good idea where I could hook into the boot > procedure to move config files around, that would be helpful too.
Something like 'whereami' should be an OK place to start for detecting the difference and responding appropriately, or just write your script to make the decision and link to the correct file. Then put it in /etc/init.d and use update-rc.d to make it run on boot. Cheers, Andrew. ------------------------------------------------------------------------- Andrew @ Catalyst .Net .NZ Ltd, PO Box 11-053, Manners St, Wellington WEB: http://catalyst.net.nz/ PHYS: Level 2, 150-154 Willis St DDI: +64(4)803-2201 MOB: +64(272)DEBIAN OFFICE: +64(4)499-2267 "If it's not loud, it doesn't work!" -- Blank Reg, from "Max Headroom" -------------------------------------------------------------------------
signature.asc
Description: This is a digitally signed message part