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
XkbVirtualModsToReal(3) 					   XKB FUNCTIONS					   XkbVirtualModsToReal(3)

NAME
XkbVirtualModsToReal - Determines the mapping of virtual modifiers to core X protocol modifiers SYNOPSIS
Bool XkbVirtualModsToReal (XkbDescPtr xkb, unsigned int virtual_mask, unsigned int *mask_rtrn); ARGUMENTS
- xkb keyboard description for input device - virtual_mask virtual modifier mask to translate - mask_rtrn backfilled with real modifiers DESCRIPTION
Xkb maintains a virtual modifier mapping, which lists the virtual modifiers associated with, or bound to, each key. The real modifiers bound to a virtual modifier always include all of the modifiers bound to any of the keys that specify that virtual modifier in their vir- tual modifier mapping. The server.vmodmap array indicates which virtual modifiers are bound to each key; each entry is a bitmask for the virtual modifier bits. The server.vmodmap array is indexed by keycode. The vmodmap and vmods members of the server map are the "master" virtual modifier definitions. Xkb automatically propagates any changes to these fields to all other fields that use virtual modifier mappings. For example, if Mod3 is bound to the Num_Lock key by the core protocol modifier mapping, and the NumLock virtual modifier is bound to they Num_Lock key by the virtual modifier mapping, Mod3 is added to the set of modifiers associated with NumLock. The virtual modifier mapping is normally updated whenever actions are automatically applied to symbols and few applications should need to change the virtual modifier mapping explicitly. Use XkbGetMap to get the virtual modifiers from the server or use XkbGetVirtualMods to update a local copy of the virtual modifiers bind- ings from the server. To set the binding of a virtual modifier to a real modifier, use XkbGetVirtualMods If the keyboard description defined by xkb includes bindings for virtual modifiers, XkbVirtualModsToReal uses those bindings to determine the set of real modifiers that correspond to the set of virtual modifiers specified in virtual_mask. The virtual_mask parameter is a mask specifying the virtual modifiers to translate; the i-th bit (0 relative) of the mask represents the i-th virtual modifier. If mask_rtrn is non-NULL, XkbVirtualModsToReal backfills it with the resulting real modifier mask. If the keyboard description in xkb does not include vir- tual modifier bindings, XkbVirtualModsToReal returns False; otherwise, it returns True. RETURN VALUES
True The XkbVirtualModsToReal function returns True if the keyboard description in xkb does include virtual modifier bindings. False The XkbVirtualModsToReal function returns False if the keyboard description in xkb does not include virtual modifier bind- ings. SEE ALSO
XkbGetMap(3), XkbGetVirtualMods(3) NOTES
It is possible for a local (client-side) keyboard description (the xkb parameter) to not contain any virtual modifier information (simply because the client has not requested it) while the server's corresponding definition may contain virtual modifier information. X Version 11 libX11 1.3.2 XkbVirtualModsToReal(3)