You are not logged in.

#1 2009-01-28 20:23:47

Mrs.Columbo
Member
Registered: 2008-06-18
Posts: 24

xmodmap: remap num lock?

Hi,

Since i quite frequently need to enter numbers in a 1e5 format I want to remap the numlock key to e (so that i can type one-handedly).
However, i somehow need to activate the number block, so i decided to map Num_Lock on the Scroll_Lock key.
with

xmodmap -e "keysym Scroll_Lock = Num_Lock"

xev gives Num_Lock as correct event, however i miss the following (quoted from xev before changing the original Num_Lock key)

PropertyNotify event, serial 35, synthetic NO, window 0x2400001,
    atom 0x178 (XKLAVIER_STATE), time 10891125, state PropertyNewValue

For comparison, i posted the original numlock xev output and the one of the remapped scroll lock:
http://pastebin.com/f3558ea1c

Any ideas how i can fix this? Would be brilliant if i could get this to work -though actually I consider it a hardware issue that producers should fix by just adding an e key to the numlock. Screw those multimedia keys, get practical...

MC

Offline

#2 2009-02-11 04:27:00

vogt
Member
From: Toronto, Canada
Registered: 2006-11-25
Posts: 389

Re: xmodmap: remap num lock?

perhaps you have to set the key to a modifier too (I'm guessing that the lock modifier is numlock:

xmodmap -e "add lock = Num_Lock"

Offline

Board footer

Powered by FluxBB