Discussion:
Kensington trackball 4-th key re-assignment
(too old to reply)
Zeus Panchenko
2018-08-10 11:20:34 UTC
Permalink
hi,

I'm trying to get working 4-th button of my trackball but without any success ...

please advise

here the data are:

device is seen as:

- ---[ dmesg quotation start ]-------------------------------------------
...
ugen6.2: <Kensington Kensington Expert Mouse> at usbus6
ums0 on uhub1
ums0: <Kensington Kensington Expert Mouse, class 0/0, rev 1.10/2.01, addr 2> on usbus6
ums0: 4 buttons and [XYZ] coordinates ID=0
...
- ---[ dmesg quotation end ]-------------------------------------------


on the button click, xev shows this:

- ---[ xev quotation start ]-------------------------------------------
...
ButtonPress event, serial 33, synthetic NO, window 0x2000001,
root 0x688, subw 0x2000002, time 4575408, (39,42), root:(1003,1144),
state 0x0, button 8, same_screen YES

EnterNotify event, serial 33, synthetic NO, window 0x2000001,
root 0x688, subw 0x0, time 4575408, (39,42), root:(1003,1144),
mode NotifyGrab, detail NotifyInferior, same_screen YES,
focus YES, state 0

KeymapNotify event, serial 33, synthetic NO, window 0x0,
keys: 4294967176 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

ButtonRelease event, serial 33, synthetic NO, window 0x2000001,
root 0x688, subw 0x2000002, time 4575512, (39,42), root:(1003,1144),
state 0x0, button 8, same_screen YES

LeaveNotify event, serial 33, synthetic NO, window 0x2000001,
root 0x688, subw 0x0, time 4575512, (39,42), root:(1003,1144),
mode NotifyUngrab, detail NotifyInferior, same_screen YES,
focus YES, state 0
...
- ---[ xev quotation end ]-------------------------------------------



xinput list shows this:

- ---[ xinput list quotation start ]-------------------------------------------
...
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ sysmouse id=7 [slave pointer (2)]
...
- ---[ xinput list quotation end ]-------------------------------------------


so, I supposed it has to be button8 and want to do double-click on click
I try to do that with xte(1) from xautomation project
http://hoopajoo.net/projects/xautomation.html


here is config row:

bindsym --release button8 exec "/usr/local/bin/xte -i 7 'mouseclick 1' 'mouseclick 1'"


it doesn't work for me ... as well as any other example from doc ...
while keyboard re-asignment for keyboard keys works well

where am I wrong?

- --
Zeus V. Panchenko jid:***@im.ibs.dn.ua
IT Dpt., I.B.S. LLC GMT+2 (EET)

Loading...