You are not logged in.
Pages: 1
Hello, I'm using a keyboard which has a American layout. It's working almost perfect, except that one key is missing, namely the "less/greather than and pipe" key. I never use the right CTRL button so I though I'd just remap it to the same function as said key. I also removed the modifier function making the left CTRL button the only control modifier. I thought this would make it work:
xmodmap -e "keycode 105 = less greater bar bar bar bar bar bar"
(maybe overkill to set bar on all those modifier combinations but since it didn't work with just "105 = less greater bar" I though I'd try just to see if that was the error)
< and > works, but no matter what modifier combination I press, it won't produce a pipe.
[toja92@toja92-archbang ~]$ xmodmap
xmodmap: up to 4 keys per modifier, (keycodes in parentheses):
shift Shift_L (0x32), Shift_R (0x3e)
lock Caps_Lock (0x42)
control Control_L (0x25)
mod1 Alt_L (0x40), Meta_L (0xcd)
mod2 Num_Lock (0x4d)
mod3
mod4 Super_L (0x85), Super_R (0x86), Super_L (0xce), Hyper_L (0xcf)
mod5 ISO_Level3_Shift (0x5c), Mode_switch (0xcb)
The "base" layout is sv-latin1(or rather, I've specified "sv" as the keyboard layout but I'm guessing it'll somehow match it to the sv-latin1 layout?).
The keyboard is a Noppoo Choc Mini, not that I think it makes any difference at all knowing the keyboard model.
Any xmodmap guru who could help me figure this one out?
Main: AMD 955 | Gefore GTX 560Ti | 8GB RAM | 1+1+2=4TB HDD | ArchBang | AwesomeWM
Laptop: Asus 1015PN | 2GB RAM | ArchBang | AwesomeWM
PC Engines WRAP.1E | 128MB RAM | Voyage Linux 0.8.0 | Running ZNC
Offline
Have you read?
Offline
Have you read?
Actually no, but it cleared up some things. My Alt_R key is mapped both to ISO_Level3_Shift and Mode_switch.
Here's what I did:
xmodmap -e "keycode 105 = less greater bar"
xmodmap -e "clear control"
xmodmap -e "add control = Control_L"
xmodmap -e "clear mod5"
xmodmap -e "add mod5 = Mode_switch"
xmodmap -e "keycode 108 = mode_switch"
keycode 105 is Right CTRL key.
keycode 108 is Right ALT key.
Now the right CTRL key gives the pipe as expected, but instead Alt_R+2 doesn't produce @(I'm guessing it has the same effect to other AltGr keys). Adding back ISO_Level3_Shift to mod5 and setting keycode 108 to ISO_Level3_Shift gives back the Alt_R-2=@, but then pressing Alt_R + right CTRL key produces a less-than sign instead.
I'm guessing I miss something vital here, but I'm not sure how to solve this since I obviously want the right ALT key to keep functioning as it does.
The 2/@ key is defined like so(according to xmodmap -pke):
keycode 11 = 2 quotedbl 2 quotedbl at twosuperior at twosuperior 2 quotedbl at twosuperior
My right CTRL key like so:
keycode 105 = less greater less greater bar NoSymbol bar NoSymbol NoSymbol NoSymbol bar NoSymbol
I copied the format of the 2/@ key, yet it still doesn't work.
EDIT: According to xev Alt_R + Right CTRL actually produces the 'less' symbol. Not sure why.
Last edited by ToJa92 (2012-04-13 07:28:13)
Main: AMD 955 | Gefore GTX 560Ti | 8GB RAM | 1+1+2=4TB HDD | ArchBang | AwesomeWM
Laptop: Asus 1015PN | 2GB RAM | ArchBang | AwesomeWM
PC Engines WRAP.1E | 128MB RAM | Voyage Linux 0.8.0 | Running ZNC
Offline
i agree with TOJA 92
Offline
Pages: 1