-
Notifications
You must be signed in to change notification settings - Fork 0
/
xinputrc
59 lines (50 loc) · 1.76 KB
/
xinputrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#
xset m 2 16
xset r rate 265 85
xset dpms 0 0 $((10 * 60))
###
ps2base='DLL096D:01 06CB:CDE6'
nomatch='FFFFFFF:FF FFFF:FFFF'
trackpad="Apple SPI Touchpad" # mbpr
touchpad_libinput="$nomatch Touchpad" # xps13 u20
touchpad_synaptics="$ps2base Touchpad" # xps13 u22
#mouse_xps13="$ps2base Mouse" # xps13 internal (notused?)
mouse_hp_pixart="PixArt HP USB Optical Mouse" # hpmouse
mouse_hp_optical="USB Optical Mouse " # note trailing space (?!)
# same setting work for both HP mice
mouse_hp="
'libinput Natural Scrolling Enabled' 0
'libinput Horizontal Scroll Enabled' 1
'libinput Accel Speed' 1.0
'libinput Scroll Method Enabled' 0, 0, 1
"
inputrc "$mouse_hp_pixart" "$mouse_hp"
inputrc "$mouse_hp_optical" "$mouse_hp"
# TODO: Device Accel might be better expressed with Synaptics Move Speed
inputrc "$touchpad_synaptics" "
'Device Accel Constant Deceleration' 1.3
'Device Accel Adaptive Deceleration' 1.8
'Device Accel Velocity Scaling' 25.0
'Synaptics Palm Detection' 1
'Synaptics Scrolling Distance' -15, -15
'Synaptics Palm Dimensions' 6, 50
'Synaptics Tap Time' 100
'Synaptics Tap Move' 100
'Synaptics Tap Durations' 100, 70, 100
'Synaptics Tap Action' 2, 3, 0, 0, 1, 3, 2
'Synaptics Area' 260, 1040, 0, 0
" # area is 0-1300 left -> right, 0-900 top -> bottom
# on u20 the same device wasn't synaptics-specific
inputrc "$touchpad_libinput" "
'libinput Tapping Enabled' 1
'libinput Tapping Drag Enabled' 1
'libinput Natural Scrolling Enabled' 1
'libinput Disable While Typing Enabled' 1
'libinput Middle Emulation Enabled' 1
'libinput Horizontal Scroll Enabled' 1
'libinput Accel Speed' 1.0
"
# left, right, top, bottom
inputrc "$trackpad" "'Synaptics Area' -2500 3300 1800 5500"
# min, max, accel, dontuse
inputrc "$trackpad" "'Synaptics Move Speed' 2.0 6.5 1.3 0"