Gentoo Archives: gentoo-user

From: Andrey Vul <andrey.vul@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] rerouting buttons in X
Date: Wed, 12 Nov 2008 23:53:13
Message-Id: e38d12ff0811121553m303dcc13k2495b2ed94bfe9b8@mail.gmail.com
In Reply to: Re: [gentoo-user] rerouting buttons in X by Andrey Falko
1 Andrey Vul
2
3 A: Because it messes up the order in which people normally read text.
4 Q: Why is top-posting such a bad thing?
5 A: Top-posting.
6 Q: What is the most annoying thing in e-mail?
7
8
9
10
11 On Wed, Nov 12, 2008 at 16:24, Andrey Falko <ma3oxuct@×××××.com> wrote:
12 > On Tue, Nov 11, 2008 at 10:03 AM, Andrey Vul <andrey.vul@×××××.com> wrote:
13 >>
14 >> My laptop (ASUS M50VM-B2) has no dedicated Home, End, PageUp, and
15 >> PageDown buttons.
16 >> Is there a way to force it if numlock is disabled then map the keys
17 >> from numpad 7,1,9,3 to Home,End,PageUp,PageDown?
18 >>
19 >> Basically, how do I reroute the numpad?
20 >>
21 >
22 > I'm not sure, but as far as I know, you want to dig around here:
23 > /usr/share/X11/xkb. There are tools that let you make mods to your layout,
24 > like xmodmap.
25 >
26
27 Yeah, I forgot about xmodmap :|
28 Digging around the manpages helped.
29 Now I have a .Xmodmap with the following:
30
31 keysym KP_Prior = Prior
32 keysym KP_Next = Next
33 keysym KP_Insert = Insert
34 keysym KP_Delete = Delete
35 keysym KP_Home = Home
36 keysym KP_End = End
37 keysym KP_Up = Up
38 keysym KP_Down = Down
39 keysym KP_Left = Left
40 keysym KP_Right = Right
41 keysym KP_Begin = Begin
42
43 Problem solved!