Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] How do I change an X keyboard layout?
Date: Thu, 22 Oct 2015 10:16:14
Message-Id: 5628B72B.4010107@gmail.com
In Reply to: Re: [gentoo-user] How do I change an X keyboard layout? by Alan Mackenzie
1 On 22/10/2015 12:09, Alan Mackenzie wrote:
2 > Hello, Marc.
3 >
4 > On Wed, Oct 21, 2015 at 09:21:07PM +0200, Marc Joliet wrote:
5 >> On Wednesday 21 October 2015 15:51:43 Alan Mackenzie wrote:
6 >
7 >>> The two keyboard layouts I use in XFCE are both fine and dandy, but they
8 >>> are incomplete. In particular, I want the key combination
9 >>> <Ctrl><Alt><shift><F1> to take me to tty13 in the same way that
10 >>> <Ctrl><Alt><F1> takes me to tty1.
11 >
12 >>> I've been searching for _hours_ trying to find out how to do this. I
13 >>> cannot find the keyboard layouts anywhere under /usr/share, where one
14 >>> might expect them. I can't find any relevant programs to manipulate
15 >>> these data files with, even if I could find them.
16 >
17 >>> Would somebody help me please. Where are the X keyboard layouts stored,
18 >>> and what program to I need to enhance them?
19 >
20 >>> TIA!
21 >
22 >> I was curious, so I looked a bit myself, and found this:
23 >
24 >> % ag ctrl-alt-f /usr/share/doc
25 >> /usr/share/doc/kbd-1.15.5-r1/html/kbd.FAQ-7.html
26 >> 21:<P>By default, console switching is done using Alt-Fn or Ctrl-Alt-Fn.
27 >> 22:Under <CODE>X</CODE> (or recent versions of <CODE>dosemu</CODE>), only
28 >> Ctrl-Alt-Fn works.
29 >
30 >> /usr/share/doc/kbd-1.15.5-r1/html/kbd.FAQ-8.html
31 >> 54:Console_n Alt-Fn and Ctrl-Alt-Fn (1 &lt;= n &lt;= 12)
32 >> 82:Ctrl-Alt-Fn Switch to VT n
33 >> 115:Ctrl-Alt-Fn Switch to VT n (from version 0.50; earlier Alt-Fn)
34 >
35 >> /usr/share/doc/kbd-1.15.5-r1/html/kbd.FAQ-13.html
36 >> 28:While it is running one can use Ctrl-Alt-Fn to switch to VTn.
37 >
38 >> /usr/share/doc/kbd-1.15.5-r1/html/kbd.FAQ-9.html
39 >> 41:However, Ctrl-Alt-Fn will work and you can go to another VT.
40 >
41 >> /usr/share/doc/libsdl-1.2.15-r9/html/docs.html
42 >> 631: The framebuffer console now uses CTRL-ALT-FN to switch virtual
43 >> terminals, to avoid collisions with application key bindings.
44 >
45 >> (Online here: http://kbd-project.org/www.win.tue.nl/~aeb/linux/kbd/)
46 >
47 > Yes, I've got that file. It only really deals with the console
48 > keyboard, though.
49 >
50 >> (For those who haven't heard of it: ag is from sys-apps/the_silver_searcher.)
51 >
52 >> From a cursory look, I couldn't find anything specific, other than that
53 >> apparently AltGr+Fn is supposed to give you console n+12 (though apparently
54 >> not from within X), but it didn't work for me, and I'm not in the mood to find
55 >> out why. Also, that FAQ looks... dated. However, maybe it will help lead you
56 >> to a solution?
57 >
58 > I think I'm going to have to exercise my meagre search engine skills.
59 >
60 >> Also, while I'm sure you've got a good reason for doing this, I'm really
61 >> curious: why not use screen or tmux instead? Especially if you're dealing
62 >> with more than twelve terminals.
63 >
64 > I've never really considered screen (or tmux). Screen looks like a way
65 > of "windowising" a tty, amongst other things, which isn't what I want.
66 > In fact, reading the Wikipedia article, I'm not even clear whether
67 > screen runs on a virtual terminal or within X.
68
69 Neither. screen runs in a shell, and the output goes to whatever the
70 shell is using for that. Same as bash, ssh and so on all do - display
71 device agnostic.
72
73
74 >
75 > No, what I really want is a way to go from X (XFCE for me) directly to
76 > any virtual terminal. At the moment, if I want to go to, say, tty14,
77 > I've first got to go to a lower numbered tty, and then to tty14. It's
78 > one of these little annoyances which is scarcely worth bothering about,
79 > but it _is_ an annoyance.
80 >
81 > I'll continue searching.
82 >
83 > Thanks for the post!
84 >
85 >> HTH
86 >> --
87 >> Marc Joliet
88 >
89
90
91 --
92 Alan McKinnon
93 alan.mckinnon@×××××.com