Advertisement
cmiN

mouse.sh

May 19th, 2016
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.35 KB | None | 0 0
  1. #! /bin/bash
  2.  
  3. id=$(xinput list | grep -i razer | grep pointer | awk '{print $6}' | cut -d = -f 2)
  4. ct=$(xinput list-props $id | grep -i "constant deceleration" | cut -d \( -f 2 | cut -d \) -f 1)
  5. ad=$(xinput list-props $id | grep -i "adaptive deceleration" | cut -d \( -f 2 | cut -d \) -f 1)
  6.  
  7.  
  8. xinput --set-prop $id $ct 8
  9. xinput --set-prop $id $ad 8
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement