summaryrefslogtreecommitdiffstats
path: root/public/.local
diff options
context:
space:
mode:
Diffstat (limited to 'public/.local')
-rwxr-xr-xpublic/.local/bin/laptop-xinput_setup.sh20
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