Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!snorkelwacker.mit.edu!paperboy!osf.org!dbrooks From: dbrooks@osf.org (David Brooks) Newsgroups: comp.windows.x Subject: Re: FAQ: image on xdm background? Message-ID: <20679@paperboy.OSF.ORG> Date: 4 Apr 91 13:54:32 GMT References: <1991Apr3.224251.10055@rice.edu> Sender: news@OSF.ORG Organization: Open Software Foundation Lines: 41 uk1@spacsun.rice.edu (Paul A. Scowen) writes: |> |> Hi, |> |> I think this has been raised before, but... we're looking to get a different |> background under the xdm login window other than the 50% gray that it |> defaults to. Here's what I do. The hook to use is xrdb, which is (currently) called from xdm with two arguments, -d and -l. You may find better directories to put things in. In my xdm startup line, I point to an xdm config file. In the config file, I have this: DisplayManager*xrdb: /etc/xdm-xrdb Here's /etc/xdm-xrdb: #!/bin/sh rfile= while [ $# -gt 0 ] do case $1 in -d*) DISPLAY=$2; export DISPLAY; shift;; -l*) rfile=$2; shift;; esac shift done # Set a shaded background (DECstation has 864 pixels vertical) /usr/bin/X11/bggen -b 7 -s 864 45 90 180 20 30 80 | /usr/bin/X11/xsetbg stdin >/dev/null 2>&1 # Really run xrdb /usr/bin/X11/xrdb $rfile exit -- David Brooks dbrooks@osf.org Systems Engineering, OSF uunet!osf.org!dbrooks Experience is what lets us recognize a mistake the second time we make it.