diff options
| author | Mitsuo Tokumori <[email protected]> | 2025-03-07 20:55:05 +0900 |
|---|---|---|
| committer | Mitsuo Tokumori <[email protected]> | 2025-03-07 20:55:05 +0900 |
| commit | 72490d68a3f9ad8a7ec12414c9171a9c66ebca23 (patch) | |
| tree | 472b9380ec25109773f9f9ff1df9d7a652f69581 | |
| parent | 6948ac6b2c139d7beee2c33e7e13914517bbc28a (diff) | |
| download | dotfiles-72490d68a3f9ad8a7ec12414c9171a9c66ebca23.tar.gz dotfiles-72490d68a3f9ad8a7ec12414c9171a9c66ebca23.tar.bz2 dotfiles-72490d68a3f9ad8a7ec12414c9171a9c66ebca23.zip | |
Add mouse config (Xorg) (last one was xrandr)
Oops
| -rwxr-xr-x | public/.local/bin/laptop-xinput_setup.sh | 20 |
1 files changed, 17 insertions, 3 deletions
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 |
