You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dotfiles/logitech_linux_mouse.sh

9 lines
360 B
Bash

#!/bin/sh
7 years ago
for id in `xinput --list|grep 'MX Master 2S'|perl -ne 'while (m/id=(\d+)/g){print "$1\n";}'`; do
xinput set-prop $id "Device Accel Velocity Scaling" 1
xinput set-prop $id "Device Accel Constant Deceleration" 0.8
xinput set-prop $id "Evdev Scrolling Distance" -1 -1 -1
# xinput set-button-map $id 1 2 3 5 4 # "natural" scrolling
done