From mboxrd@z Thu Jan 1 00:00:00 1970 From: Diego Nicola Barbato Subject: Re: SLiM graphical login manager and keyboard layout Date: Fri, 18 Oct 2019 18:57:30 +0200 Message-ID: <87a79y2dqd.fsf@GlaDOS.home> References: <20191018123345.sxoawlfothe2tx3d@rafflesia> <87eeza2g7l.fsf@GlaDOS.home> <20191018161122.2sryulubzaiozfto@rafflesia> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:54624) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLVZN-0000kv-PR for guix-devel@gnu.org; Fri, 18 Oct 2019 12:57:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iLVZJ-0003Qb-Jz for guix-devel@gnu.org; Fri, 18 Oct 2019 12:57:39 -0400 Received: from mout01.posteo.de ([185.67.36.65]:35896) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iLVZH-0003Os-RJ for guix-devel@gnu.org; Fri, 18 Oct 2019 12:57:36 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 8132A16005D for ; Fri, 18 Oct 2019 18:57:32 +0200 (CEST) In-Reply-To: <20191018161122.2sryulubzaiozfto@rafflesia> (Tanguy Le Carrour's message of "Fri, 18 Oct 2019 18:11:22 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Tanguy Le Carrour Cc: Guix Tanguy Le Carrour writes: > Hi Diego! > > > Le 10/18, Diego Nicola Barbato a =C3=A9crit : >> You can set the keyboard layout directly in the slim-configuration like >> this: >> --8<---------------cut here---------------start------------->8--- >> (service slim-service-type >> (slim-configuration >> (xorg-configuration >> (keyboard-layout keyboard-layout)))) >> --8<---------------cut here---------------end--------------->8--- > > I have a slightly different version that works! That's because mine doesn't make sense (sorry!). I've messed it up when adapting it from my own config.scm. > (service slim-service-type > (slim-configuration > (xorg-configuration > (xorg-configuration > (keyboard-layout keyboard-layout)))))) > > > I don't understand the "double" `xorg-configuration`, though! ^_^' The outer 'xorg-configuration' is a field of the 'slim-configuration' data type. The inner 'xorg-configuration' is itself a data type representing the Xorg configuration (with its 'keyboard-layout' field set to the value of 'keyboard-layout'). If you look at the section 'X Window' in the Guix manual, you'll see that the default value for the 'xorg-configuration' field (of the 'slim-configuration' data type) is '(xorg-configuration)', which is simply the 'xorg-configuration' data type with all its fields set to their respective default values. HTH, Diego