uk1@spacsun.rice.edu (Paul A. Scowen) (04/04/91)
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. The Xreset script doesn't work, it just wipes it to gray anyway. Anybody remember how to do this, as I said I think this has been figured out before, but back aways. Thanks, |-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-| - __________ - | Paul A. Scowen / ___ ___ \ | - Department of Space Physics and Astronomy / / @ \/ @ \ \ - | Rice University, Houston TX 77251 \ \___/\___/ /\ | - (713) 527-8101 x2433, x3534 \____\/____/|| - | / /\\\\\// | - Internet: uk1@spacsun.rice.edu | |\\\\\\ - | scowen@vega.rice.edu \ \\\\\\ | - \______/\\\\ - | Span: RICE::SCOWEN _||_||_ | - -- -- - |-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|
dbrooks@osf.org (David Brooks) (04/04/91)
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.
mouse@lightning.mcrcim.mcgill.EDU (der Mouse) (04/05/91)
> I think this has been raised before, Yup :-) > but... we're looking to get a different background under the xdm > login window other than the 50% gray that it defaults to. 50% gray? You seem to have an unusual server. The root background is normally a 1:3 white:black (ie, 1/4 intensity overall) pattern. > The Xreset script doesn't work, it just wipes it to gray anyway. > Anybody remember how to do this, as I said I think this has been > figured out before, but back aways. The trick is to use the xrdb hook provided by xdm. You need to point xdm's xrdb program at something - a shell script works and is simple - that does whatever you want (and runs the real xrdb to install the resources, of course). I used to have a working example of this, but it was on a machine whose disk has since been "recycled" to hold other things, so that example now exists only on backup tapes.... der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu
stumpf@Informatik.TU-Muenchen.DE (Markus Stumpf) (04/09/91)
In article <9104050413.AA03245@lightning.McRCIM.McGill.EDU>, mouse@lightning.mcrcim.mcgill.EDU (der Mouse) writes: |> I used to have a working example of this, but it was on a machine whose |> disk has since been "recycled" to hold other things, so that example |> now exists only on backup tapes.... |> |> der Mouse Maybe I can help you out! Used this during xmas time on various of our workstations! In (mostly) /usr/lib/X11/xdm add/change the line for xrdb to DisplayManager*xrdb: /usr/lib/X11/xdm/xrdb+xsetroot and add a file to that directory called xrdb+xsetroot which should look similar to: #!/bin/sh # /usr/bin/X11/xrdb "$@" /usr/bin/X11/xsetroot -display $2 -bitmap /usr/wiss/stumpf/bitmaps/xmastree.xbm exit 0 Note: you have to completely restart xdm to get it to work! Have fun! \Maex -- +- Markus Stumpf Technische Universitaet Muenchen -+ | Institut fuer Informatik, Rechnerbetriebsgruppe | | stumpf@informatik.tu-muenchen.de Postfach 202420 | +- ...@{unido.uucp,relay.cs.net} D-8000 Muenchen 2, West Germany -+