From owner-freebsd-questions@FreeBSD.ORG Wed Jul 4 09:25:55 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1A4BB1065670 for ; Wed, 4 Jul 2012 09:25:55 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id C768A8FC08 for ; Wed, 4 Jul 2012 09:25:54 +0000 (UTC) Received: from r56.edvax.de (port-92-195-56-63.dynamic.qsc.de [92.195.56.63]) by mx01.qsc.de (Postfix) with ESMTP id 65CDA3E731; Wed, 4 Jul 2012 11:25:48 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id q649PlaT002825; Wed, 4 Jul 2012 11:25:47 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Wed, 4 Jul 2012 11:25:47 +0200 From: Polytropon To: uki Message-Id: <20120704112547.afdee9e3.freebsd@edvax.de> In-Reply-To: References: <20120625043302.198cf5c3@vixen42.vulpes.vvelox.net> <1341383241395-5724072.post@n5.nabble.com> <20120704083457.6158cff8.freebsd@edvax.de> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Understanding XDM X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jul 2012 09:25:55 -0000 On Wed, 4 Jul 2012 10:40:05 +0200, uki wrote: > 2012/7/4 Polytropon : > > On Tue, 3 Jul 2012 23:27:21 -0700 (PDT), sw2wolf wrote: > >> I am using slim to login which can choose Window Manager by pressing F1 key. > >> Can XDM choose Window Manager when loginning ? > > > > No, xdm cannot do this. But as far as I remember, wdm can -- it has > > some look & feel of the original CDE display manager and it designed > > to work well with WindowMaker, but it's a very nice replacement for > > xdm if you need that specific functionality. It's quite lightweight > > (compared to gdm or kdm) and easily configurable. > > xdm is very simple, it just logs you in and runs a shell script. > with default settings the shell script just executes your ~/.xinitrc I always thouzght "startx" (so xinit) executes ~/.xinitrc, and xdm executes ~/.xession. In fact, I have a "cascade" for this, so I can use whatever I want. This is .xsession: #!/bin/csh source ~/.cshrc exec ~/.xinitrc It does simply obtain the settings for the dialog shell (in this case, the C shell, the system's default dialog shell) and continues executing as .xinitrc, just as if it had been called vial "startx" (so xinit command). And .xinitrc contains the usual stuff, ending in calling the window manager desired: #!/bin/sh [ -f ~/.xmodmaprc ] && xmodmap ~/.xmodmaprc # ... other stuff ... xsetroot -solid rgb:3b/4c/7a xset b 100 1000 15 & xset r rate 250 30 & xset s off & xset -dpms & exec wmaker This of course does not taking into account _changing_ the window manager while logging in! > here is an example how to add shutdown button to xdm > http://neilt.org/computing/xdmshutdownbutton.php > you can use it as an example to hack your own 'change wm' feature, or > just use some xdm replacement that has that. Interesting extension, thanks! -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...