commit 6ff978293ffff788d12b43c6db16fba6bcd8347c (patch) parent d6219cf865b70fa562e9e7b56fe449ef0f6170bd Author: Alex Karle <alex@alexkarle.com> Date: Mon, 31 Jan 2022 21:59:35 -0500 X11: Add xinput config for trackpoint scrolling This was a fun one to recreate. I knew roughly what I needed from some googling, but no one seemed to agree and no one linked any doc. I was able to find the doc by searching for "WS Pointer" in the xenocara repo and sure enough -- voila! doc! I tried to document what I learned--finding the button id's was a mix of Arch wiki and trial and error. Diffstat:
M | .xsession | | | 15 | +++++++++++++++ |
1 file changed, 15 insertions(+), 0 deletions(-)
diff --git a/.xsession b/.xsession @@ -14,5 +14,20 @@ xsetroot -solid "#1E1F21" # (also for cwm's program launcher to find things) . "$HOME/.profile" +if [ "$(uname)" = "OpenBSD" ]; then + # Enable middle click + trackpoint scrolling. Doc in ws(4) and xinput(1) + # + # `xinput --list` shows /dev/wsmouse to be our mouse device + # + # ws(4) shows the accepted values/desc for the device! + # * Wheel Emulation -- mouse acts like a scroll wheel when Button pressed (1 for true) + # * Wheel Em Button -- button that enables the Wheel Emulation (2 for middle) + # * Wheel Em Axes -- buttons that represent Xup/down Yup/down. 4/5 is scroll + # up/down 6/7 is "thumb" (side) up/down. + xinput set-prop "/dev/wsmouse" "WS Pointer Wheel Emulation" 1 + xinput set-prop "/dev/wsmouse" "WS Pointer Wheel Emulation Button" 2 + xinput set-prop "/dev/wsmouse" "WS Pointer Wheel Emulation Axes" 6 7 4 5 +fi + # Finally, launch my preferred desktop--currently cwm(1) exec cwm