Xprofile

This script will automatically choose X configurations so that you can easily change for different situations. All you have to do is place the script in your runlevel (init scripts) and setup the config files.

I first created this because my laptop needs a different XF86Config when I have a monitor plugged in. I used to manually run the script to change the configs. (Use -m option). Then I used different runlevels to decide whether or not the monitor was plugged in. Now the script detects when the monitor is plugged in using /proc/acpi. (requires acpi 'video' kernel module) I can boot with or without the monitor plugged in and the system works properly!

See the INSTALL file for more information.

Download Files