From mboxrd@z Thu Jan 1 00:00:00 1970 From: Catonano Subject: Re: keyboard layout and system locale Date: Sat, 17 Mar 2018 19:24:50 +0100 Message-ID: References: <87h8pe4uh0.fsf@GlaDOS.home> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a1142cdd433187e05679fd7e6" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:32962) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1exGVh-0001kg-DL for help-guix@gnu.org; Sat, 17 Mar 2018 14:24:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1exGVg-0001kQ-EZ for help-guix@gnu.org; Sat, 17 Mar 2018 14:24:53 -0400 Received: from mail-yw0-x22c.google.com ([2607:f8b0:4002:c05::22c]:43829) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1exGVg-0001it-8g for help-guix@gnu.org; Sat, 17 Mar 2018 14:24:52 -0400 Received: by mail-yw0-x22c.google.com with SMTP id r66so9072136ywh.10 for ; Sat, 17 Mar 2018 11:24:52 -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 --001a1142cdd433187e05679fd7e6 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\" > MatchIsKeyboard \"on\" > EndSection"))))))) > > This sets the default keyboard layout of X to ch. All you have to do is > replace the \"ch\" with \"it\". It has the added benefit of setting the > keyboard layout in SLIM so that you do not have to worry about special > characters in your login password. > > Thank you Diego ! Would you mind to share the whole file ? I tried to copy and paste your contribution but I messed it up, I can't makkke it workk and I didn't keep the previous version :-/ --001a1142cdd433187e05679fd7e6 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\"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 MatchIsKeyboard \"on\"
EndSection")))))))

This sets the default keyboard layout of X to ch.=C2=A0 All you have to do = is
replace the \"ch\" with \"it\".=C2=A0 It has the added = benefit of setting the
keyboard layout in SLIM so that you do not have to worry about special
characters in your login password.



Thank you Diego !

Would you mind to share the whole file ?

I tried to co= py and paste your contribution but I messed it up, I can't makkke it wo= rkk and I didn't keep the previous version :-/


<= /div>
--001a1142cdd433187e05679fd7e6--