Re: KeyBinding question

"Matthew D. Fuller" <[email protected]>
Newsgroups gmane.comp.window-managers.ctwm
Message-ID <[email protected]>
On Sat, Apr 29, 2017 at 10:38:45PM +0100 I heard the voice of
Aaron Sloman, and lo! it spake thus:
>
> I can live with that, but since I have several rarely used keys on
> the top row, I wondered if I could map them (e.g. F11 and F12) onto
> PageUp and PageDown.
>
> Ctwm is very flexible so I wonder whether it could handle this
> mapping.  Perhaps it is necessary to go deeper into Linux/X11
> innards, e.g. altering /usr/lib/kbd/keymaps/xkb/gb.map.gz (for a UK
> keyboard) or something deep in the X window system, perhaps invoked
> via ctwm?

I don't think you can do that via ctwm.  The usual way would be to use
xmodmap(1) to remap stuff.  e.g., I invoke it pretty early in my
.xinitrc:

  xmodmap ~/.xmodmap

to do things like fix up that otherwise useless key some idiot decided
to put to the left of 'a':

  remove Lock    = Caps_Lock
  keycode 0x42 =  Control_L
  add    Control = Control_L

and various other tweaks.


xkeycaps(1) <http://www.jwz.org/xkeycaps/> is a useful frontend to
write up a first blush xmodmap file.


-- 
Matthew Fuller     (MF4839)   |  [email protected]
Systems/Network Administrator |  http://www.over-yonder.net/~fullermd/
           On the Internet, nobody can hear you scream.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.