From owner-freebsd-questions@FreeBSD.ORG Sun Sep 17 13:37:20 2006 Return-Path: <owner-freebsd-questions@FreeBSD.ORG> X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F01AA16A416 for <freebsd-questions@freebsd.org>; Sun, 17 Sep 2006 13:37:20 +0000 (UTC) (envelope-from rambiusparkisanius@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.177]) by mx1.FreeBSD.org (Postfix) with ESMTP id B1A6E43D6A for <freebsd-questions@freebsd.org>; Sun, 17 Sep 2006 13:37:12 +0000 (GMT) (envelope-from rambiusparkisanius@gmail.com) Received: by py-out-1112.google.com with SMTP id o67so4570010pye for <freebsd-questions@freebsd.org>; Sun, 17 Sep 2006 06:37:12 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=gOQVN2QKHD3qX6tu0l9cA6lAH56VuwhDeozN2O02T8Bp6qbiH97B9I4KRaudBrVvRm0SJ0IlI4Yn38AhA4yY/daltYzg+InjzA7EnMIagthJIiSIScYKGjqZa3u7SYvHGi9bGhUiFw3vnyx3rQb3IQK8DqOMAEOWawvQ+9CWVpg= Received: by 10.65.185.3 with SMTP id m3mr14270781qbp; Sun, 17 Sep 2006 06:37:09 -0700 (PDT) Received: by 10.65.114.6 with HTTP; Sun, 17 Sep 2006 06:37:09 -0700 (PDT) Message-ID: <89ce7f740609170637p2104c6c1n86995efe3f5b562e@mail.gmail.com> Date: Sun, 17 Sep 2006 16:37:09 +0300 From: "Ivan \"Rambius\" Ivanov" <rambiusparkisanius@gmail.com> To: freebsd-questions@freebsd.org In-Reply-To: <20060916231735.GA1124@home> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <89ce7f740609161430w9a525ebq3f88870141683b92@mail.gmail.com> <20060916231735.GA1124@home> Subject: Re: Calling setxkbmap when starting X X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions <freebsd-questions.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions> List-Post: <mailto:freebsd-questions@freebsd.org> List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, <mailto:freebsd-questions-request@freebsd.org?subject=subscribe> X-List-Received-Date: Sun, 17 Sep 2006 13:37:21 -0000 Hello, Thank you for your response. > I think what you're looking for is xinit(1). My own: > > $ cat ~/.xinitrc > #!/bin/sh > xmodmap .xmodmaprc > xsetroot -solid dimgray > xgamma -gamma 0.8 > exec /usr/X11R6/bin/gnome-session I forgot to explain that I do not start X manually with startx command. It is started on boot time by adding the following line in /etc/ttys: ttyv8 "/usr/local/bin/kdm -nodaemon" xterm on secure I think that in this case ~/.xinitrc is not called. > Note also you can also define keyboard settings in rc.conf: > > $ grep keymap /etc/rc.conf > keymap="us.iso.kbd.custom" > > My own custom keymap is a quick hack to swap the Caps_Lock key with > Escape for non-X uses (something that only vi users would appreciate). > > Alternatively, KDE, like Gnome, etc. most likely offers a mechanism to > execute scripts at startup, but I'd advise against that approach. I googled a little bit about localizing FreeBSD and found that one can configure it in xorg.conf. In my case I add the following setting in the Keyboard section: Option "XkbLayout" "us,bg" Option "XkbOptions" "grp:alt_shift_toggle" Option "XkbVariant" ",phonetic" Regards Ivan -- Tangra Mega Rock: http://www.radiotangra.com