🐈

ubuntuでキーボードの特定のキーを無効にする方法

2021/02/18に公開
  • check keycode
$ xev
KeyPress event, serial 37, synthetic NO, window 0x3800001,
    root 0x6a5, subw 0x0, time 538579992, (321,298), root:(413,412),
    state 0x0, keycode 110 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False
  • disable key(example: keycode = 110)
$ xmodmap -e 'keycode 110 = 0x0000'

https://askubuntu.com/questions/54417/how-to-disable-keys-from-the-keyboard

Discussion