From mboxrd@z Thu Jan 1 00:00:00 1970 From: Catonano Subject: Re: keyboard layout and system locale Date: Tue, 20 Mar 2018 22:14:49 +0100 Message-ID: References: <87h8pe4uh0.fsf@GlaDOS.home> <87d10042sz.fsf@GlaDOS.home> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a113f57fa9e55be0567de904d" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51824) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eyOaq-0002jG-F9 for help-guix@gnu.org; Tue, 20 Mar 2018 17:14:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eyOap-00083M-6q for help-guix@gnu.org; Tue, 20 Mar 2018 17:14:52 -0400 Received: from mail-yw0-x22a.google.com ([2607:f8b0:4002:c05::22a]:36289) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eyOao-000832-W5 for help-guix@gnu.org; Tue, 20 Mar 2018 17:14:51 -0400 Received: by mail-yw0-x22a.google.com with SMTP id y64so1024982ywa.3 for ; Tue, 20 Mar 2018 14:14:50 -0700 (PDT) In-Reply-To: <87d10042sz.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 --001a113f57fa9e55be0567de904d Content-Type: text/plain; charset="UTF-8" 2018-03-19 14:23 GMT+01:00 Diego Nicola Barbato : > Hello Catonano > > Catonano writes: > > > 2018-03-18 18:58 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\" > > > > Ok, the semicolon is illegal Xorg syntax and made the server crash !! > > I am sorry. I meant to write a comment to explain which entry you > should replace and forgot that my "comment" was still inside the > string. Everything after and including the semicolon is not supposed to > be there. I apologise for this silly mistake. > No need to apologize, I was not blaming you Sorry if that came out the wrong way ! > I wrote an example config (based on the one you posted) and verified > that it works both with `guix system vm-image' and `guix system init' > (after modifying the target hard disk) and that the X server does not > crash: > > Unfortunately GNOME overrides the system wide keyboard settings. So > this only addresses your initial concern if you use Xfce. > That's something ;-) For now I used the VMs to open 2 bugs related to Gnome. There's an "ibus" thing not working And a control panel crashing Didn't test your new file yet, I'll let you know !! Thanks ! --001a113f57fa9e55be0567de904d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


2018-03-19 14:23 GMT+01:00 Diego Nicola Barbato <<= a href=3D"mailto:dnbarbato@posteo.de" target=3D"_blank">dnbarbato@posteo.de= >:
Hello C= atonano

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

> 2018-03-18 18:58 GMT+01:00 Catonano <catonano@gmail.com>:
>
>=C2=A0 2018-03-17 16:01 GMT+01:00 Diego Nicola Barbato <dnbarbato@posteo.de>:
>
>=C2=A0 Hello Catonano
>
>=C2=A0 Catonano <catonano@gmai= l.com> writes:
>
>=C2=A0 > Can I set up the keyboard layout and my system locale (Ital= ian) for my Gnome desktop in my conf.scm file ?
>=C2=A0 >
>=C2=A0 > Otherwise I have to click around in every throaway virtual = machine I create in order to be able to use the desktop environment
>=C2=A0 >
>=C2=A0 > Thanks
>
>=C2=A0 To set the keyboard layout in my config.scm I replaced %desktop-= services
>=C2=A0 with this:
>
>=C2=A0 (modify-services %desktop-services
>=C2=A0 (slim-service-type config =3D>
>=C2=A0 (slim-configuration
>=C2=A0 (inherit config)
>=C2=A0 (startx (xorg-start-command
>=C2=A0 #:configuration-file
>=C2=A0 (xorg-configuration-file
>=C2=A0 ;; Setup X to use a swiss german keyboard layout.
>=C2=A0 #:extra-config
>=C2=A0 '("Section \"InputClass\"
>=C2=A0 Identifier \"keyboard-all\"
>=C2=A0 Option \"XkbLayout\" \"ch\" ; <~ replace = \"ch\" with \"it\"
>
>=C2=A0 Ok, the semicolon is illegal Xorg syntax and made the server cra= sh !!

I am sorry.=C2=A0 I meant to write a comment to explain which entry = you
should replace and forgot that my "comment" was still inside the<= br> string.=C2=A0 Everything after and including the semicolon is not supposed = to
be there.=C2=A0 I apologise for this silly mistake.
No need to apologize, I was not blaming you
Sorr= y if that came out the wrong way !

=C2=A0
I wrote an example config (based on the one you posted) and verified
that it works both with `guix system vm-image' and `guix system init= 9;
(after modifying the target hard disk) and that the X server does not
crash:

Unfortunately GNOME overrides the system wide keyboard settings.=C2=A0 So this only addresses your initial concern if you use Xfce.
<= div>
That's something ;-)

For now I use= d the VMs to open 2 bugs related to Gnome.=C2=A0
There's an "i= bus" thing not working
And a control panel crashing
<= /div>

Didn't test your new file yet, I'll let yo= u know !!

Thanks !
--001a113f57fa9e55be0567de904d--