From mboxrd@z Thu Jan 1 00:00:00 1970 From: Catonano Subject: Re: keyboard layout and system locale Date: Sun, 18 Mar 2018 18:58:54 +0100 Message-ID: References: <87h8pe4uh0.fsf@GlaDOS.home> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000004aaf570567b398e6" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52206) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1exca9-0001jo-Ow for help-guix@gnu.org; Sun, 18 Mar 2018 13:58:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1exca8-0005KD-GQ for help-guix@gnu.org; Sun, 18 Mar 2018 13:58:57 -0400 Received: from mail-yw0-x22a.google.com ([2607:f8b0:4002:c05::22a]:46269) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1exca8-0005K1-AL for help-guix@gnu.org; Sun, 18 Mar 2018 13:58:56 -0400 Received: by mail-yw0-x22a.google.com with SMTP id v68so7558909ywg.13 for ; Sun, 18 Mar 2018 10:58:56 -0700 (PDT) In-Reply-To: <87h8pe4uh0.fsf@GlaDOS.home> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Diego Nicola Barbato Cc: help-guix --0000000000004aaf570567b398e6 Content-Type: text/plain; charset="UTF-8" 2018-03-17 16:01 GMT+01:00 Diego Nicola Barbato : > Hello Catonano > > Catonano writes: > > > Can I set up the keyboard layout and my system locale (Italian) for my > Gnome desktop in my conf.scm file ? > > > > Otherwise I have to click around in every throaway virtual machine I > create in order to be able to use the desktop environment > > > > Thanks > > To set the keyboard layout in my config.scm I replaced %desktop-services > with this: > > (modify-services %desktop-services > (slim-service-type config => > (slim-configuration > (inherit config) > (startx (xorg-start-command > #:configuration-file > (xorg-configuration-file > ;; Setup X to use a swiss german keyboard > layout. > #:extra-config > '("Section \"InputClass\" > Identifier \"keyboard-all\" > Option \"XkbLayout\" \"ch\" ; <~ replace \"ch\" with \"it\" > Ok, the semicolon is illegal Xorg syntax and made the server crash !! Now something else happens Slim shows up properly, but after the login, the login command fails Here's a picture https://imgur.com/a/Ul1Ie --0000000000004aaf570567b398e6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


2018-03-17 16:01 GMT+01:00 Diego Nicola Barbato <<= a href=3D"mailto:dnbarbato@posteo.de" target=3D"_blank">dnbarbato@posteo.de= >:
Hello Catonano

Catonano <catonano@gmail.com&g= t; writes:

> Can I set up the keyboard layout and my system locale (Italian) for my= Gnome desktop in my conf.scm file ?
>
> Otherwise I have to click around in every throaway virtual machine I c= reate in order to be able to use the desktop environment
>
> Thanks

To set the keyboard layout in my config.scm I replaced %desktop= -services
with this:

(modify-services %desktop-services
=C2=A0(slim-service-type config =3D>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (slim= -configuration
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0(inherit config)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0(startx (xorg-start-command
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 #:configuration-file
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (xorg-configuration-file
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0;; Setup X to use a swiss german keyb= oard layout.
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0#:extra-config
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0'("Section \"InputClass= \"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Identifier \"keyboard-all\"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Option \"XkbLayout\" \"ch\"= ; <~ replace \"ch\" with \"it\"

Ok, the semicolon is illegal Xorg syntax and made the serv= er crash !!

Now something else happens

= Slim shows up properly, but after the login, the login command fails
--0000000000004aaf570567b398e6--