You are not logged in.

#1 2011-11-27 11:58:26

vitoreiji
Member
Registered: 2009-09-04
Posts: 67

Remap "menu" key in textmode

Hi all,

Recently I got a new laptop and installed arch on it, but one big nuisance it has is its keyboard: the damn thing doesn't have a "/?" key, one has to use AltGr+q and AltGr+w to get those, which is a big problem for linux users. (I have posted this under "Laptop Issues" because it seems to be a growing trend in the laptop world...)
So I decided to remap the menu key to have a decent slash key, and I know how to do it in Xmodmap, but I would really like a solution that would work in console mode as well.
So, looking at my /usr/share/kbd/keymaps/i386/qwerty/br-abnt2.map.gz, I added the folowing lines there

keycode  135 = slash question degree
        control         keycode  135 = Delete
        alt             keycode  135 = Meta_slash

I'm using keycode 135 because that is what xev told me the menu key is.
Also, in my rc.conf I have KEYMAP="qwerty/br-abnt2".

Then I reboot and log into console mode, but it doesn't work. What am I doing wrong?

Thank you!

EDIT: typo

Last edited by vitoreiji (2011-11-27 11:59:00)

Offline

#2 2011-11-27 14:11:44

Markus00000
Member
Registered: 2011-03-27
Posts: 318

Re: Remap "menu" key in textmode

This works for me:

# echo keycode 58 = slash question degree | /usr/bin/loadkeys -

It can be put to /etc/rc.local to make it permanent.

Last edited by Markus00000 (2011-11-27 14:17:29)

Offline

#3 2011-11-27 14:36:06

vitoreiji
Member
Registered: 2009-09-04
Posts: 67

Re: Remap "menu" key in textmode

Markus, thank you for taking the time to help me, but unforunately it didn't work for me. I tried keycodes 58 and 135, but the menu key does nothing.

Offline

Board footer

Powered by FluxBB