Unfortunately i currenly also like that elecom huge better than the Classic Trackball - Ploopy (which has QMK support!). It seems to me, to be because of the soft gel pad.
So you added a X11 configuration to enable scrolling with the trackball, that could be quite nice. Would be nice if it could be a toggle. Ooh, this seems to do that: libinput(4) — Arch manual pages “ScrollButtonLock”
An attempt to name/explain all button numbers
(using xev | grep -- button
to see less of the output from xev
).
1 - bottom left button
2 - push wheel in
7 - push wheel up
6 - push wheel down
4 - scroll wheel forward
5 - scroll wheel backward
9 - forward button (front top left)
8 - backward (back top left)
10 - small front (front upper left)
11 - small back (back upper left)
3 - second to most right (left of right side)
12 - most right (right of right side)
So, i will be trying out (don’t want to restart X11 right now):
(
# location="/user/share/X11/xorg.conf.d/40-libinput.conf"
location="/etc/X11/xorg.conf.d/50-trackball-elecom.conf"
test ! -e "${location?}" ||
{
>&2 printf 'Making a timestamped copy of "%s".' "${location?}" &&
cp -a "${_?}" "${_%.*}.at$(
date --utc +%+4Y%m%d%H%M%S%Z
).${_##*.}.old"
}
<<'EOF' cat | >/dev/null sudo tee -a "${location?}"
Section "InputClass"
Identifier "ELECOM TrackBall Mouse HUGE TrackBall"
MatchProduct "ELECOM TrackBall Mouse HUGE TrackBall"
Driver "libinput"
Option "Scrollmethod" "button"
Option "ScrollButton" "8"
Option "ScrollButtonLock" true
EndSection
EOF
unset location
)
It seems to me that /etc/X11/xorg.conf.d/
is what would be preferable for user-made configurations (keeping /usr/share/..
for package(-maintainer)s, also: man xorg.conf
.