From mboxrd@z Thu Jan 1 00:00:00 1970 From: Diego Nicola Barbato Subject: Re: keyboard layout and system locale Date: Sat, 17 Mar 2018 16:01:15 +0100 Message-ID: <87h8pe4uh0.fsf@GlaDOS.home> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58510) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1exDKp-00005h-VP for help-guix@gnu.org; Sat, 17 Mar 2018 11:01:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1exDKm-0001Ff-U0 for help-guix@gnu.org; Sat, 17 Mar 2018 11:01:28 -0400 Received: from mout01.posteo.de ([185.67.36.65]:44196) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1exDKm-00016m-JU for help-guix@gnu.org; Sat, 17 Mar 2018 11:01:24 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 3BAE5211AE for ; Sat, 17 Mar 2018 16:01:16 +0100 (CET) In-Reply-To: (catonano@gmail.com's message of "Sat, 17 Mar 2018 07:40:40 +0100") 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: Catonano Cc: help-guix 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. HTH Diego