Keychord mapping in Xorg


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Keychord mapping in Xorg
# 1  
Old 04-11-2009
Keychord mapping in Xorg

Hi, I'm trying to figure out how to rebind key-chords (combinations of multiple keys, like Control+M) under X. My motivation is that these chords interfere with keyboard bindings in emacs. For example, I cannot bind anything containing Control+M: as far as emacs can see it is the same key as 'RET' (according to C-h k C-m). Xterm also sees is it as RET, so it must be something global.

I am running Xorg over FreeBSD 7.1 release (x86 32bit).

Here's what I've tried and failed with:

* I modified key mappings with kbdcontrol(1). However, as far as I see this only affects virtual consoles, and makes no difference when X is running.

* I tried xmodmap(1), which does affect key bindings in X. But the man page shows no indication that it can affect multi-key combinations (chords), unlike kbdcontrol(1).

* I ran xev(1), to see what things look like to Xorg. It shows key chords as multiple key events: I do not know where on my system they are being translated (e.g., where Control+M maps to RET).

Any tips? Smilie
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. BSD

Installing OpenBSD for Xorg on Sunblade 2500

Hello All, I am new to the forum so forgive me for any mistakes. I have a question. I have been doing alot of reading about how to get a supportable operating system on my sunblade 2500. I also want to use it for Xorg. I have been having trouble getting the sun XVR drivers working... (2 Replies)
Discussion started by: harqobi22
2 Replies

2. Shell Programming and Scripting

Creating unique mapping from multiple mapping

Hello, I do not know if this is the right title to use. I have a large dictionary database which has the following structure: where a b c d e are in English and p q r s t are in a target language., the two separated by the delimiter =. What I am looking for is a perl script which will take... (5 Replies)
Discussion started by: gimley
5 Replies

3. Ubuntu

Problems with xorg.conf

Hi folks, I'm using a virtual machine to run Ubuntu 9.04 and I tried modify the xorg.conf following the steps by other pages and I always have problems when I restart the vmachine (Sun VirtualBox). This is my xorg.conf ... (0 Replies)
Discussion started by: adiegorpc
0 Replies

4. UNIX for Dummies Questions & Answers

No xorg.conf or XF86Config

There is no xorg.conf file and no XF86Config file on a certain FreeBSD machine: # locate xorg.conf /usr/local/man/man5/xorg.conf.5.gz # locate XF86Config # Can someone let me know if that means that there is a bare bones set up possible only? xrandr works fine, but I am looking for ways to... (6 Replies)
Discussion started by: figaro
6 Replies

5. Ubuntu

Xorg is taking System Resources.

Hi All, I am facing System Speed problem.i saw in top command Xorg process was taking most of the time 20% of CPU and Memory.How to make it normal. Currently i am using AMD Athlon 64 HT technology processor(Socket 939) 512 DDR1 RAM Nvidia 5200 GeForce 128 MB Graphic card. i need help in... (2 Replies)
Discussion started by: arvindk.monu
2 Replies

6. Gentoo

xorg constantly freezes

this is purely for posterity but it took me a while to find this solution online. 10.1 comes wanting to install the stable releases of xorg and the kernel. However on many platforms (especially with intel video) the result is an xorg that functions for a few minutes but then hangs up and prevents... (0 Replies)
Discussion started by: thmnetwork
0 Replies

7. BSD

OpenBSD: Xorg at boot?

SOLUTION: 11 - The X Window System What's the method proper to have Xorg start after OBSD boots? Thanks! :p (0 Replies)
Discussion started by: b1f30
0 Replies

8. Windows & DOS: Issues & Discussions

cygwin-x/can't install xorg-x11-f100 & xorg-x11-fnts

Hello All. Really a newbie to Linux/Unix. Trying to get into Linux. Using XP PE currently. Installed cygwin and trying to intall cygwin-x. Everything else is setup nice but i can't seem to install these two packages (without whom xwin won't start) 1. xorg-x11-f100 2. xorg-x11-fnts Tried the... (1 Reply)
Discussion started by: binodbdrchand
1 Replies

9. UNIX Desktop Questions & Answers

X11 / Xorg / XFree modules documentation

It is possible to load many modules using xorg.conf, for example: Section "Module" Load "i2c" Load "bitmap" Load "ddc" Load "dri" Load "extmod" Load "freetype" Load "glx" Load "int10" Load "type1" Load "vbe" EndSectionIs there some online/ps/pdf documentation about each of... (2 Replies)
Discussion started by: vermaden
2 Replies
Login or Register to Ask a Question
XkbUpdateMapFromCore(3) 					   XKB FUNCTIONS					   XkbUpdateMapFromCore(3)

NAME
XkbUpdateMapFromCore - Update a local Xkb keyboard map to reflect the mapping expressed by a core format mapping SYNOPSIS
Bool XkbUpdateMapFromCore (XkbDescPtr xkb, KeyCode first_key, int num_keys, int map_width, KeySym *core_keysyms, XkbChangesPtr changes); ARGUMENTS
- xkb keyboard description to update - first_key keycode of first key description to update - num_keys number of key descriptions to update - map_width width of core protocol keymap - core_keysyms symbols in core protocol keymap - changes backfilled with changes made to Xkb DESCRIPTION
Xkb provides several functions that make it easier to apply the compatibility map to configure a client-side Xkb keyboard mapping, given a core protocol representation of part or all of a keyboard mapping. Obtain a core protocol representation of a keyboard mapping from an actual server (by using XGetKeyboardMapping, for example), a data file, or some other source. XkbUpdateMapFromCore interprets input argument information representing a keyboard map in core format to update the Xkb keyboard descrip- tion passed in xkb. Only a portion of the Xkb map is updated - the portion corresponding to keys with keycodes in the range first_key through first_key + num_keys - 1. If XkbUpdateMapFromCore is being called in response to a MappingNotify event, first_key and num_keys are reported in the MappingNotify event. core_keysyms contains the keysyms corresponding to the keycode range being updated, in core keyboard description order. map_width is the number of keysyms per key in core_keysyms. Thus, the first map_width entries in core_keysyms are for the key with keycode first_key, the next map_width entries are for key first_key + 1, and so on. In addition to modifying the Xkb keyboard mapping in xkb, XkbUpdateMapFromCore backfills the changes structure whose address is passed in changes to indicate the modifications that were made. You may then use changes in subsequent calls such as XkbSetMap, to propagate the local modifications to a server. SEE ALSO
XkbSetMap(3) X Version 11 libX11 1.5.0 XkbUpdateMapFromCore(3)