help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: keyboard layout and system locale


From: Catonano
Subject: Re: keyboard layout and system locale
Date: Sat, 17 Mar 2018 20:57:04 +0100

never mind, I managed to makke it work

Thanks !

2018-03-17 19:24 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\"
        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 :-/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]