0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

ThinkPad x1 Carbon 2019にインストールしたUbuntu20.04で中央クリックの動作を無効にする

Posted at

中央クリックの動作

貼り付けになっているのだけれど、すごくやっかいなのでやめたい

参考

xinputコマンドで入力デバイスの一覧を取得

  • TPPS/2 Elan TrackPoint がトラックポイント部分のよう
yuta:~ $ export DISPLAY=:0
yuta:~ $ xinput 
⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ SYNA8004:00 06CB:CD8B Mouse               id=11   [slave  pointer  (2)]
⎜   ↳ SYNA8004:00 06CB:CD8B Touchpad            id=12   [slave  pointer  (2)]
⎜   ↳ TPPS/2 Elan TrackPoint                    id=15   [slave  pointer  (2)]
⎣ Virtual core keyboard                         id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Video Bus                                 id=7    [slave  keyboard (3)]
    ↳ Sleep Button                              id=8    [slave  keyboard (3)]
    ↳ Integrated Camera: Integrated C           id=9    [slave  keyboard (3)]
    ↳ Integrated Camera: Integrated I           id=10   [slave  keyboard (3)]
    ↳ sof-hda-dsp Headset Jack                  id=13   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=14   [slave  keyboard (3)]
    ↳ ThinkPad Extra Buttons                    id=16   [slave  keyboard (3)]
yuta:~ $ 

トラックポイント部分のキーマップを取得

yuta:~ $ xinput get-button-map "TPPS/2 Elan TrackPoint"
1 2 3 4 5 6 7 

無効化設定

yuta:~ $ xinput set-button-map "TPPS/2 Elan TrackPoint" 1 0 3 4 5 6 7

永続化設定

  • .bashrcに追記
# Disable Center Click
xinput set-button-map "TPPS/2 Elan TrackPoint" 1 0 3 4 5 6 7
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?