Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


  Search this Thread
Old 01-15-2011, 09:59 PM   #1
LQ Newbie
Registered: Oct 2009
Location: Porto Alegre, Brazil
Distribution: Debian
Posts: 4

Rep: Reputation: 0
xmodmap: Mapping ISO_Level3_Shift does not work


I'm trying to have both Mode_switch and ISO_Level3_Shift on the same keymap, but X is ignoring my ISO_Level3_Shift binding.

I want to have something like this in my xmodmap:

keysym c = c C ccedilla Ccedilla ccircumflex Ccircumflex
and have AltGr+c produce ccedilla and Insert+c produce ccircumflex. (Yes, Insert. It is in a strange place in this keyboard.) The original modifier map was:

vitor@pts5 vitor(0)$ cat /tmp/x
xmodmap:  up to 3 keys per modifier, (keycodes in parentheses):

shift       Shift_L (0x32),  Shift_R (0x3e)
lock        Caps_Lock (0x42)
control     Control_L (0x25),  Control_R (0x6d)
mod1        Alt_L (0x40),  Alt_R (0x71),  Meta_L (0x9c)
mod2        Num_Lock (0x4d)
mod4        Super_L (0x7f),  Hyper_L (0x80)
mod5        Mode_switch (0x5d),  ISO_Level3_Shift (0x7c)
AltGr sends keycode 113 and keysym Alt_R. Insert sends keycode 106 (and keysym Insert, of course.) Then I tried:

vitor@pts5 vitor(0)$ xmodmap -e 'keycode 113 = Mode_switch'
vitor@pts5 vitor(0)$ xmodmap -e 'keycode 106 = ISO_Level3_Shift'
vitor@pts5 vitor(0)$ xmodmap -e 'keysym c = c C x X y Y z Z'
Now AltGr+c produces x, but Insert+c produces c.

Then I tried:

vitor@pts7 vitor(1)$ xmodmap -e 'clear mod5'
vitor@pts7 vitor(0)$ xmodmap -e 'add mod5 = Mode_switch'
But the problem persists. Trying to assign ISO_Level3_Shift to the AltGr key doesn't work either.

Any idea about what is happening here? I'm using Xorg 7.3 on Debian 5.07. Thanks in advance!
Old 01-15-2011, 10:31 PM   #2
LQ Newbie
Registered: Oct 2009
Location: Porto Alegre, Brazil
Distribution: Debian
Posts: 4

Original Poster
Rep: Reputation: 0
Crude solution

I changed xorg.conf to use "us(intl)" instead of "us" as keymap and now it honors ISO_Level3_Shift. Does not make a lot of sense, but it works...


keymaps, x11, xmodmap, xorg

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
rdesktop drive mapping to xp does not work Rush_898 Linux - Software 0 06-05-2008 03:01 PM
getting xmodmap to work for all users? harkonen Fedora 4 12-07-2007 02:11 AM
Mapping CTRL+Click as right click using xmodmap in Modular X.Org 7 on Gentoo amitron Linux - General 0 10-12-2006 12:25 PM
xmodmap does not work Takalah Linux - Hardware 4 11-28-2004 12:24 PM
physical scsi channel mapping to scsiX device node mapping, how to configure manually drthornt Linux - Hardware 3 02-09-2003 12:50 PM

All times are GMT -5. The time now is 05:55 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration