[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Anyone want to make a Debian XDM login screen?



> Subject: Re: Anyone want to make a Debian XDM login screen?
> Date: Thu, 23 Apr 1998 11:21:52 -0600 (MDT)
> From: Barak Pearlmutter <bap@cs.unm.edu>
> To: "David A. van Leeuwen" <david@elseware.cistron.nl>
> CC: debian-devel@lists.debian.org
>
> Inspired by your cute reboot/halt button hack, I added it plus a
> little background color to my own xdm.  Everyone here is pretty happy
> with the result.
>
>                                         --BAP.
>

That's cool. I hacked my xdm to move the login window to the top left-hand
corner, set the background black, and run xlock with a pretty anim in
the background. You have to kill it when folks log in. Here's da code
(apologies for volume):


--

Paul Reavis                                      preavis@partnersoft.com
Design Lead
Partner Software, Inc.                        http://www.partnersoft.com


! $XConsortium: Xresources,v 1.7 93/09/28 14:30:29 gildea Exp $
xlogin*login.translations: #override\
	Ctrl<Key>R: abort-display()\n\
	<Key>F1: set-session-argument(failsafe) finish-field()\n\
	Ctrl<Key>Return: set-session-argument(failsafe) finish-field()\n\
	<Key>Return: set-session-argument() finish-field()
xlogin*borderWidth: 3
xlogin.Login.width: 400
xlogin.Login.height: 200
xlogin.Login.x: 0
xlogin.Login.y: 0
xlogin*greeting: I am CLIENTHOST
xlogin*namePrompt: what is your name:\ 
xlogin*passwdPrompt: what is your quest:\ 
xlogin*fail: Hey, no way, man...
#ifdef COLOR
xlogin*greetColor: orange
xlogin*failColor: red
*Foreground: orange
*Background: black
#else
xlogin*Foreground: black
xlogin*Background: white
#endif

XConsole.text.geometry:	480x130
XConsole.verbose:	true
XConsole*iconic:	true
XConsole*font:		fixed

Chooser*geometry:		750x550+200+100
Chooser*allowShellResize:	false
Chooser*viewport.forceBars:	true
Chooser*label.font:		*-new century schoolbook-bold-i-normal-*-240-*
Chooser*label.label:		XDMCP Host Menu  from CLIENTHOST
Chooser*list.font:		-*-*-medium-r-normal-*-*-230-*-*-c-*-iso8859-1
Chooser*Command.font:		*-new century schoolbook-bold-r-normal-*-180-*


#!/bin/sh
# $XConsortium: Xsetup_0,v 1.3 93/09/28 14:30:31 gildea Exp $

#if grep -q ^run-xconsole /etc/X11/config
#then
#  xconsole -geometry 480x130-0-0 -daemon -notify -verbose -fn fixed \
#    -exitOnFail -file /dev/xconsole
#fi

if [ -x /usr/bin/X11/xsetroot ] ; then
  /usr/bin/X11/xsetroot -solid black
fi

if [ -x /usr/bin/X11/xlock ] ; then
  /usr/bin/X11/xlock -nolock -inroot -mode bouboule &
  echo $! > /var/run/LoginPretty.pid
fi
exit 0
#! /bin/sh
#
# This script is run as root after a user starts a session on :0.

# Call the global Xstartup script, if it exists
if [ -x /etc/X11/xdm/Xstartup ] ; then
  /etc/X11/xdm/Xstartup
fi

# :0 specific startup commands go here
start-stop-daemon --stop --quiet --pidfile /var/run/LoginPretty.pid

exit 0


Reply to: