From mboxrd@z Thu Jan 1 00:00:00 1970 From: Albin Subject: Re: [PATCH] services: 'console-keymap-service' takes multiple files. Date: Fri, 15 Apr 2016 22:19:28 +0200 Message-ID: <57114CD0.1060904@fripost.org> References: <87a8l3eqhc.fsf@gmail.com> <87lh4hcifc.fsf@gnu.org> <878u0eq2dv.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41887) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1arADR-0006bq-CB for guix-devel@gnu.org; Fri, 15 Apr 2016 16:19:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1arADO-0007w7-6A for guix-devel@gnu.org; Fri, 15 Apr 2016 16:19:45 -0400 In-Reply-To: <878u0eq2dv.fsf@gmail.com> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Alex Kost , guix-devel@gnu.org Den 2016-04-15 kl. 18:10, skrev Alex Kost: > Ludovic Court=C3=A8s (2016-04-14 00:23 +0300) wrote: >=20 >> Alex Kost skribis: >> >>> From 8c58974b549479a8e97cf64f21393aa495596e13 Mon Sep 17 00:00:00 200= 1 >>> From: Alex Kost >>> Date: Sat, 9 Apr 2016 00:21:15 +0300 >>> Subject: [PATCH] services: 'console-keymap-service' takes multiple fi= les. >>> >>> * gnu/services/base.scm (console-keymap-service-type): Type procedure >>> takes a list of files instead of a single file. >>> (console-keymap-service): Take 'files' as rest arguments. >>> * doc/guix.texi (Base Services): Improve documentation of >>> 'console-keymap-service'. >> >> [...] >> >>> +Return a service to load console keymaps from @var{files} using >>> +@command{loadkeys} command. Most likely, you want to load some defa= ult >>> +keymap, which can be done like this: >>> + >>> +@example >>> +(console-keymap-service "dvorak") >>> +@end example >> >> Perhaps you could add the example from the IRC discussion you mentione= d >> with a short explanation, just below this example? >=20 > Would the following be OK? >=20 >=20 >=20 >=20 > Albin, does "loadkeys se-ir209 se-fi-ir209" do the right thing for you? Yes. I tried it with the GuixSD USB installer on two different computers -- a macbook and a traditional desktop PC. > If I understood correctly this is the exact combination of keymaps that > suits your keyboard, right? Is it a general layout for Swedish > keyboards? It doesn't appear to be the only working combination. I also tried `loadkeys se-lat6 se-fi-lat6` which seems to produce the same result. Loading the first keymap (either 'se-ir209' or 'se-lat6') gives me the right keyboard except I get the Danish/Norwegian letters '=C3=B8', '=C3=A6= ' instead of the Swedish '=C3=B6', '=C3=A4' and certain characters, e.g. '/= ' and '+', are in the wrong place. Loading the second keymap (either 'se-fi-ir209' or 'se-fi-lat6') fixes that. There must be some minor difference between 'lat6' and 'ir209' but I couldn't see what that would = be. In other words, using either `loadkeys se-ir209 se-fi-ir209` or `loadkeys se-lat6 se-fi-lat6` generates a general Swedish keyboard layout from what I can see. Albin