From mboxrd@z Thu Jan 1 00:00:00 1970 From: Catonano Subject: Re: keyboard layout and system locale Date: Sat, 17 Mar 2018 20:57:04 +0100 Message-ID: References: <87h8pe4uh0.fsf@GlaDOS.home> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a1142cdd404892f0567a121db" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44829) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1exHwx-0005Wm-0b for help-guix@gnu.org; Sat, 17 Mar 2018 15:57:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1exHwv-0001Ey-Vq for help-guix@gnu.org; Sat, 17 Mar 2018 15:57:07 -0400 Received: from mail-yw0-x235.google.com ([2607:f8b0:4002:c05::235]:43988) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1exHwv-0001E5-OI for help-guix@gnu.org; Sat, 17 Mar 2018 15:57:05 -0400 Received: by mail-yw0-x235.google.com with SMTP id r66so9155785ywh.10 for ; Sat, 17 Mar 2018 12:57:05 -0700 (PDT) In-Reply-To: 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 --001a1142cdd404892f0567a121db Content-Type: text/plain; charset="UTF-8" never mind, I managed to makke it work Thanks ! 2018-03-17 19:24 GMT+01:00 Catonano : > > > 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 :-/ > > > --001a1142cdd404892f0567a121db Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
never mind, I managed to makke it work

T= hanks !

= 2018-03-17 19:24 GMT+01:00 Catonano <catonano@gmail.com>:


2018-03-17 16:0= 1 GMT+01:00 Diego Nicola Barbato <dnbarbato@posteo.de>:
Hello Catonano

Catonano <catona= no@gmail.com> 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 !
<= br>
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 :-/


<= /div>

--001a1142cdd404892f0567a121db--