Running different scripts for each display

Use this procedure to run a particular script for a specific display.

  1. If the /etc/dt/config/Xconfig file does not exist, copy the /usr/dt/config/Xconfig file to the /etc/dt/config directory.
  2. Use the startup, reset, and setup resources in /etc/dt/config/Xconfig to specify different scripts for each display (these files are run instead of the Xstartup, Xreset, and Xsetup files):
    Dtlogin*DisplayName*startup: /path/file
    Dtlogin*DisplayName*reset: /path/file
    Dtlogin*DisplayName*setup: /path/file

where path is the path name of the file to be used, and file is the file name of the file to be used. The startup script is run as root after the user has logged in, before the Common Desktop Environment session is started.

The script /usr/dt/config/Xreset can be used to reverse the setting made in the Xstartup file. The Xreset file runs when the user logs out.

The following example shows lines in the Xconfig file which specify different scripts for two displays:
Dtlogin.sysaaa_0*startup:   /etc/dt/config/Xstartup0
Dtlogin.sysaaa_1*startup:    /etc/dt/config/Xstartup1
Dtlogin.sysaaa_0*setup:      /etc/dt/config/Xsetup0
Dtlogin.sysaaa_1*setup:      /etc/dt/config/Xsetup1
Dtlogin.sysaaa_0*reset:      /etc/dt/config/Xreset0
Dtlogin.sysaaa_1*reset:      /etc/dt/config/Xreset1