From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 56CB213888F for ; Thu, 22 Oct 2015 10:16:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 441BB21C028; Thu, 22 Oct 2015 10:16:02 +0000 (UTC) Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D4C2EE07E6 for ; Thu, 22 Oct 2015 10:16:00 +0000 (UTC) Received: by wicll6 with SMTP id ll6so128187650wic.0 for ; Thu, 22 Oct 2015 03:15:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=uCRA+aOGxfz3EqnYIY0+P2BEmPqV4BJgN4osu81A0gw=; b=FvnF0bwHvBVZq9lIo504irunfo9UhUC+ijh2mYSxin/syGY58HfPwx+7ZjvbQhepSS v7XCsfswqYec4n7MB7btytwjQHFhhiltk4UaKUmSX+1NDkEmhwJnuSv8he/gQmnOoBGo 6U/c4Q4JIOF4H0lLwe2++Tw2z9K1eVl/LmMJA7VqOSh0zbxOeFfX/RIF01M2KjQ8/iNF +yd2AHSd/GsVXeDNfJdA0V3KH/aD/wx2xSNW5gmHHqgp+QrDopcqPlPQumLxhBGyaPte JFIU0mYyATf/rSIgJuVcmSueonhPLvWJyHiBQ1THA91kf79psqnZletRTRRYL1k7zzQP eY8g== X-Received: by 10.180.211.116 with SMTP id nb20mr16991033wic.50.1445508959674; Thu, 22 Oct 2015 03:15:59 -0700 (PDT) Received: from [172.29.2.12] ([209.212.109.4]) by smtp.googlemail.com with ESMTPSA id i10sm15900199wjz.41.2015.10.22.03.15.58 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Oct 2015 03:15:59 -0700 (PDT) Subject: Re: [gentoo-user] How do I change an X keyboard layout? To: gentoo-user@lists.gentoo.org References: <20151021155143.GE2608@acm.fritz.box> <2288221.DWPXYPyi4K@thetick> <20151022100911.GB2645@acm.fritz.box> From: Alan McKinnon Message-ID: <5628B72B.4010107@gmail.com> Date: Thu, 22 Oct 2015 12:15:07 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 In-Reply-To: <20151022100911.GB2645@acm.fritz.box> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Archives-Salt: 83c91850-cd7d-4eea-9c3d-2bded224f0e4 X-Archives-Hash: 6418748cb92c92a2ca4865e81097e433 On 22/10/2015 12:09, Alan Mackenzie wrote: > Hello, Marc. > > On Wed, Oct 21, 2015 at 09:21:07PM +0200, Marc Joliet wrote: >> On Wednesday 21 October 2015 15:51:43 Alan Mackenzie wrote: > >>> The two keyboard layouts I use in XFCE are both fine and dandy, but they >>> are incomplete. In particular, I want the key combination >>> to take me to tty13 in the same way that >>> takes me to tty1. > >>> I've been searching for _hours_ trying to find out how to do this. I >>> cannot find the keyboard layouts anywhere under /usr/share, where one >>> might expect them. I can't find any relevant programs to manipulate >>> these data files with, even if I could find them. > >>> Would somebody help me please. Where are the X keyboard layouts stored, >>> and what program to I need to enhance them? > >>> TIA! > >> I was curious, so I looked a bit myself, and found this: > >> % ag ctrl-alt-f /usr/share/doc >> /usr/share/doc/kbd-1.15.5-r1/html/kbd.FAQ-7.html >> 21:

By default, console switching is done using Alt-Fn or Ctrl-Alt-Fn. >> 22:Under X (or recent versions of dosemu), only >> Ctrl-Alt-Fn works. > >> /usr/share/doc/kbd-1.15.5-r1/html/kbd.FAQ-8.html >> 54:Console_n Alt-Fn and Ctrl-Alt-Fn (1 <= n <= 12) >> 82:Ctrl-Alt-Fn Switch to VT n >> 115:Ctrl-Alt-Fn Switch to VT n (from version 0.50; earlier Alt-Fn) > >> /usr/share/doc/kbd-1.15.5-r1/html/kbd.FAQ-13.html >> 28:While it is running one can use Ctrl-Alt-Fn to switch to VTn. > >> /usr/share/doc/kbd-1.15.5-r1/html/kbd.FAQ-9.html >> 41:However, Ctrl-Alt-Fn will work and you can go to another VT. > >> /usr/share/doc/libsdl-1.2.15-r9/html/docs.html >> 631: The framebuffer console now uses CTRL-ALT-FN to switch virtual >> terminals, to avoid collisions with application key bindings. > >> (Online here: http://kbd-project.org/www.win.tue.nl/~aeb/linux/kbd/) > > Yes, I've got that file. It only really deals with the console > keyboard, though. > >> (For those who haven't heard of it: ag is from sys-apps/the_silver_searcher.) > >> From a cursory look, I couldn't find anything specific, other than that >> apparently AltGr+Fn is supposed to give you console n+12 (though apparently >> not from within X), but it didn't work for me, and I'm not in the mood to find >> out why. Also, that FAQ looks... dated. However, maybe it will help lead you >> to a solution? > > I think I'm going to have to exercise my meagre search engine skills. > >> Also, while I'm sure you've got a good reason for doing this, I'm really >> curious: why not use screen or tmux instead? Especially if you're dealing >> with more than twelve terminals. > > I've never really considered screen (or tmux). Screen looks like a way > of "windowising" a tty, amongst other things, which isn't what I want. > In fact, reading the Wikipedia article, I'm not even clear whether > screen runs on a virtual terminal or within X. Neither. screen runs in a shell, and the output goes to whatever the shell is using for that. Same as bash, ssh and so on all do - display device agnostic. > > No, what I really want is a way to go from X (XFCE for me) directly to > any virtual terminal. At the moment, if I want to go to, say, tty14, > I've first got to go to a lower numbered tty, and then to tty14. It's > one of these little annoyances which is scarcely worth bothering about, > but it _is_ an annoyance. > > I'll continue searching. > > Thanks for the post! > >> HTH >> -- >> Marc Joliet > -- Alan McKinnon alan.mckinnon@gmail.com