From owner-freebsd-questions@FreeBSD.ORG Sun Mar 7 10:06:58 2010 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 4A003106566C for ; Sun, 7 Mar 2010 10:06:58 +0000 (UTC) (envelope-from contact@kikinovak.net) Received: from maiev.nerim.net (maiev.ipv6.nerim.net [IPv6:2001:7a8:1:1::89]) by mx1.freebsd.org (Postfix) with ESMTP id E5CF38FC0C for ; Sun, 7 Mar 2010 10:06:57 +0000 (UTC) Received: from [192.168.1.1] (kikinovak.pck.nerim.net [213.41.141.252]) by maiev.nerim.net (Postfix) with ESMTP id 8E97DB81B3 for ; Sun, 7 Mar 2010 11:06:56 +0100 (CET) Message-ID: <4B937B4C.3030702@kikinovak.net> Date: Sun, 07 Mar 2010 11:09:16 +0100 From: Niki Kovacs User-Agent: Thunderbird 2.0.0.22 (X11/20090625) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Configure X: multiple keyboard layouts ? 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: Sun, 07 Mar 2010 10:06:58 -0000 Hi, I'd like to configure X for multiple keyboard layouts, e. g.: - french - swiss french - german On my Linux box (running CentOS 5.4 and a dated version of X.org), the configuration for this looks like this : Section "InputDevice" Identifier "Keyboard0" Driver "kbd" Option "XkbModel" "pc105" Option "XkbLayout" "fr,ch,de" Option "XkbVariant" ",fr," Option "XkbOptions" "grp:alt_shift_toggle" EndSection This stanza enables me to toggle between different keyboard layouts, using the [Alt]+[RightShift] key combination. You might wonder about the XkbVariant option: the swiss keyboard layout has two variants: fr and de. This is to indicate the swiss roman layout. Now is there any way I could achieve a similar thing with the more recent X.org shipping with FreeBSD 8.0 ? Any suggestions ? Niki Kovacs