From owner-freebsd-questions@FreeBSD.ORG Wed Jul 2 07:58:24 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3D23A106568A for ; Wed, 2 Jul 2008 07:58:24 +0000 (UTC) (envelope-from tl32@next.online.no) Received: from mail45.e.nsc.no (mail45.e.nsc.no [193.213.115.45]) by mx1.freebsd.org (Postfix) with ESMTP id A89AD8FC1E for ; Wed, 2 Jul 2008 07:58:23 +0000 (UTC) (envelope-from tl32@next.online.no) Received: from [212.251.182.235] (212251182235.customer.cdi.no [212.251.182.235]) (authenticated bits=0) by mail45.nsc.no (8.13.8/8.13.5) with ESMTP id m627wKjm003614; Wed, 2 Jul 2008 09:58:20 +0200 (MEST) Message-ID: <486B3509.9090605@next.online.no> Date: Wed, 02 Jul 2008 09:58:01 +0200 From: Tore Lund User-Agent: Thunderbird 2.0.0.12 (X11/20080229) MIME-Version: 1.0 To: ronggui , freebsd-questions@freebsd.org References: <38b9f0350807020011y35080e75ge2d8d083635be72a@mail.gmail.com> In-Reply-To: <38b9f0350807020011y35080e75ge2d8d083635be72a@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Subject: Re: Execute the command when login X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jul 2008 07:58:24 -0000 ronggui wrote: > I would like to execute "xmodmap ~/.xmodmaprc" whenever login or start > the Xorg. I try to put the command to ~/.login_conf or ~/.xinit, but > it doesn't take effects. > > What should I do? Thanks. How do you start X? That command should normally be in ~/.xsession or ~/.xinitrc, all depending. Personally I put the xmodmap command in ~/.xinitrc, and my ~/.xsession is a symlink to ~/.xinitrc. That way, xmodmap will be executed whether I start X from the command line or use xdm. -- Tore