Linux: How to Disable Number Lock Keys?

By Xah Lee. Date: . Last updated: .

How to disable number lock key on Linux?

Create a file at ~/.Xmodmap with the following content:

! -*- coding: utf-8 -*-
! 2014-10-04
! make num lock do F18
! keycode  77 = Num_Lock NoSymbol Num_Lock

clear Lock

keycode 77 = F18 F18 F18

Now, run this line in terminal:

xmodmap ~/.Xmodmap

back to Linux: xmodmap Tutorial