#author("2023-08-27T12:27:36+09:00","","")
#topicpath();

////////////////////////////////////////////////////////////////////////////////
* 目次 [#jadc1c94]
#contents();


////////////////////////////////////////////////////////////////////////////////
* マウスボタンの機能割り当て変更 [#h196c84e]
- マウスボタンの機能割り当て変更には、以下を使用出来る
|~command |~package (Debian) |~description |~remark |
|xmodmap  |x11-xserver-utils |割り当て済みの機能を他のボタンに割り当て直す | |
|xinput   |xinput |ボタンに指定した機能を割り当てる | |
|~command                   |~package (Debian) |~description                                 |~remark |
|[[xmodmap>Device/xmodmap]] |x11-xserver-utils |割り当て済みの機能を他のボタンに割り当て直す | |
|xinput                     |xinput            |ボタンに指定した機能を割り当てる             | |

 
//==============================================================================
** xmodmap [#w5226539]

//==============================================================================
** xinput [#v965c0b4]

+ 現在のデバイス一覧を確認する
 $ xinput
 ⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
 ⎜   ↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
 ⎜   ↳ Logitech Unifying Device. Wireless PID:101b	id=9	[slave  pointer  (2)]
 ⎜   ↳ TPPS/2 IBM TrackPoint                   	id=12	[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                       	id=10	[slave  keyboard (3)]
     ↳ AT Translated Set 2 keyboard            	id=11	[slave  keyboard (3)]
     ↳ ThinkPad Extra Buttons                  	id=13	[slave  keyboard (3)]
~
+ 上記の一覧中、マウス(Logitech製無線マウス)は "Logitech Unifying Device. Wireless PID:101b" となる。このマウスのボタン割り当てを確認する
 $ xinput list "Logitech Unifying Device. Wireless PID:101b"
 Logitech Unifying Device. Wireless PID:101b	id=9	[slave  pointer  (2)]
 	Reporting 7 classes:
 		Class originated from: 9. Type: XIButtonClass
 		Buttons supported: 24
 		Button labels: "Button Left" "Button Middle" "Button Right" "Button Wheel Up" "Button Wheel Down" "Button Horiz Wheel Left" "Button Horiz Wheel Right" "Button Side" "Button Extra" "Button Forward" "Button Back" "Button Task" "Button Unknown" "Button Unknown" "Button Unknown" "Button Unknown" "Button Unknown" "Button Unknown" "Button Unknown" "Button Unknown" "Button Unknown" "Button Unknown" "Button Unknown" "Button Unknown"
 		Button state:
 		Class originated from: 9. Type: XIValuatorClass
 		Detail for Valuator 0:
 		  Label: Rel X
 		  Range: -1.000000 - -1.000000
 		  Resolution: 1 units/m
 		  Mode: relative
 		Class originated from: 9. Type: XIValuatorClass
 		Detail for Valuator 1:
 		  Label: Rel Y
 		  Range: -1.000000 - -1.000000
 		  Resolution: 1 units/m
 		  Mode: relative
 		Class originated from: 9. Type: XIValuatorClass
 		Detail for Valuator 2:
 		  Label: Rel Horiz Wheel
 		  Range: -1.000000 - -1.000000
 		  Resolution: 1 units/m
 		  Mode: relative
 		Class originated from: 9. Type: XIValuatorClass
 		Detail for Valuator 3:
 		  Label: Rel Vert Wheel
 		  Range: -1.000000 - -1.000000
 		  Resolution: 1 units/m
 		  Mode: relative
 		Class originated from: 9. Type: XIScrollClass
 		Scroll info for Valuator 2
 		  type: 2 (horizontal)
 		  increment: 1.000000
 		  flags: 0x0
 		Class originated from: 9. Type: XIScrollClass
 		Scroll info for Valuator 3
 		  type: 1 (vertical)
 		  increment: -1.000000
 		  flags: 0x2 ( preferred )
 




//==============================================================================
** 参考リンク [#t3a78dab]
- [[LinuxのX Window Systemでマウスボタンの割り当てを変更する - kakurasan>http://kakurasan.blogspot.jp/2015/03/mousebuttonmapping-linux-x11.html#h-mousebuttonmapping-linux-x11-3-4]]

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS