From 72490d68a3f9ad8a7ec12414c9171a9c66ebca23 Mon Sep 17 00:00:00 2001 From: Mitsuo Tokumori Date: Fri, 7 Mar 2025 20:55:05 +0900 Subject: Add mouse config (Xorg) (last one was xrandr) Oops --- public/.local/bin/laptop-xinput_setup.sh | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'public/.local/bin/laptop-xinput_setup.sh') diff --git a/public/.local/bin/laptop-xinput_setup.sh b/public/.local/bin/laptop-xinput_setup.sh index e471869..b707549 100755 --- a/public/.local/bin/laptop-xinput_setup.sh +++ b/public/.local/bin/laptop-xinput_setup.sh @@ -1,13 +1,27 @@ #!/bin/bash -# See https://wiki.archlinux.org/title/Libinput +# See: +# https://wiki.archlinux.org/title/Libinput +# https://man.archlinux.org/man/libinput.4 +# https://wiki.archlinux.org/title/Mouse_acceleration -#xinput list -#xinput list-props +# Useful commands: +# $ lsusb +# $ xinput list +# $ xinput list-props "device_name or id" pulse15() { xinput set-prop "UNIW0001:00 093A:0255 Touchpad" "libinput Tapping Enabled" 1 #xinput set-prop "UNIW0001:00 093A:0255 Touchpad" "libinput Tapping Enabled Default" 1 + + # Mice + # 3-bit prop meanings for convenience (see libinput man for more info): + # * "profile": adaptive, flat, custom + # * "scroll method": twofinger, edge, button + # Buffalo BSMBU19 (125 Hz) + xinput set-prop "HID 1bcf:08a0 Mouse" "libinput Accel Profile Enabled" 1 0 0 + xinput set-prop "HID 1bcf:08a0 Mouse" "libinput Accel Speed" .5 + xinput set-prop "HID 1bcf:08a0 Mouse" "libinput Scroll Method Enabled" 0 0 1 } pulse15 -- cgit v1.2.3