[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: caps lock...num lock...whatever...



On Thu, Aug 23, 2001 at 11:06:25PM -0400, Jeff Maxson wrote:
> 
> ok, even stupider. I meant num lock, not caps lock.  how do you turn on
> num lock by default?

This is a hack I like.  Got it from the archives a while back -

Create ~/.Xmodmap -
! redefines numeric keypad to be used without NumLock
keycode 79 = 7
keycode 80 = 8
keycode 81 = 9

keycode 83 = 4
keycode 84 = 5
keycode 85 = 6

keycode 87 = 1
keycode 88 = 2
keycode 89 = 3

keycode 90 = 0
keycode 91 = period
keycode 86 = plus

! deactivates NumLock key
keycode 77 =

Then in .xinitrc or .xession -
exec xmodmap .Xmodmap &

If you want the num lock "on" all the time this will do it for you.
kent




Reply to: