Guest User

Untitled

a guest
Jan 23rd, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. #!/bin/bash
  2. echo
  3.  
  4. # Enable Caps Lock Key in Crouton
  5. # xmodmap -e "keycode 133 = Caps_Lock"
  6. # echo "Caps Lock Key Enabled . . . . . . . . . . . . . . . . . . . . . . . [OK]"
  7.  
  8. # Get rid of Mouse Acceleration
  9. xset mouse 1/1 0
  10. echo "Mouse Partially Slowed Down . . . . . . . . . . . . . . . . . . . . [OK]"
  11.  
  12. # Make sure mouse works, in case of switching USB Ports after disabling Trackpad
  13. MOUSE=$(xinput | grep 'Logitech' | grep 'pointer' | cut -c55-56)
  14. PROP=$(xinput list-props $MOUSE | grep 'Constant Deceleration' | cut -c38-40)
  15. xinput set-prop $MOUSE 119 1
  16. echo "Mouse Enabled . . . . . . . . . . . . . . . . . . . . . . . . . . . [OK]"
  17.  
  18. # Slow down that mouse!
  19. xinput set-prop $MOUSE $PROP 2 &&
  20. echo "Mouse Fully Slowed Down . . . . . . . . . . . . . . . . . . . . . . [OK]"
  21.  
  22. # Now that the mouse works, disable the Trackpad.
  23. # TRACKPAD=$(xinput | grep 'Trackpad' | cut -c55)
  24. # xinput set-prop $TRACKPAD 119 0
  25. # echo "Trackpad Disabled . . . . . . . . . . . . . . . . . . . . . . . . . [OK]"
  26.  
  27. echo
Add Comment
Please, Sign In to add comment