[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: keyboard layout and system locale
From: |
Diego Nicola Barbato |
Subject: |
Re: keyboard layout and system locale |
Date: |
Mon, 19 Mar 2018 14:23:24 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) |
Hello Catonano
Catonano <address@hidden> writes:
> 2018-03-18 18:58 GMT+01:00 Catonano <address@hidden>:
>
> 2018-03-17 16:01 GMT+01:00 Diego Nicola Barbato <address@hidden>:
>
> Hello Catonano
>
> Catonano <address@hidden> 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.
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:
test.scm
Description: config file
Unfortunately GNOME overrides the system wide keyboard settings. So
this only addresses your initial concern if you use Xfce.
Greetings
Diego
Re: keyboard layout and system locale, Chris Marusich, 2018/03/18