You are not logged in.

Announcement

Due to heavy spamming of forums registration is going in stages. If you wish to register as a new user with ArchBang Forums, first register and then send an e-mail to: archbangforums at gmail dot com. It should contain the problem you want to discuss or some other AB related content. You will be promoted from registering member with no posting rights to new member with posting rights after that. If your mail is ignored you haven't fulfilled the requirements.

#1 2012-04-13 05:43:55

ToJa92
New member
From: /dev/null
Registered: 2012-04-04
Posts: 5

Xmodmap and pipe key.

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

#2 2012-04-13 06:33:00

Mr Green
Iso Developer
Registered: 2010-11-07
Posts: 3,892

Offline

#3 2012-04-13 07:26:16

ToJa92
New member
From: /dev/null
Registered: 2012-04-04
Posts: 5

Re: Xmodmap and pipe key.

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

#4 2012-04-25 05:25:10

amaliajiff
New member
Registered: 2012-04-25
Posts: 1

Re: Xmodmap and pipe key.

i agree with TOJA 92

Offline

Board footer

Powered by FluxBB