Guest User

Untitled

a guest
Jun 10th, 2021
18
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. read -p 'Pointer Name(device output from xinput list-props): ' "pointer"
  3. xinput --set-prop "$pointer" "libinput Accel Profile Enabled" 0, 1
  4. increment="true"
  5. lowpre="10"
  6. highpre="20"
  7. function setsens {
  8. sleep $(shuf -i 3-5 -n 1);
  9. rcon -H 127.0.0.1 -p 27015 -P password sensitivity $(seq $low .000001 $high | shuf -n 1)
  10. xinput list-props "$pointer" | grep "307"
  11. }
  12. while true; do
  13. if [[ "$increment" = "true" && "$highpre" != "40" ]]; then
  14. low=$(awk "BEGIN {print ($lowpre/10)}")
  15. high=$(awk "BEGIN {print ($highpre/10)}")
  16. setsens
  17. let lowpre="$lowpre+5"
  18. let highpre="$highpre+5"
  19. else
  20. increment="false"
  21. fi
  22.  
  23. if [[ "$increment" = "false" && $lowpre != "10" ]]; then
  24. low=$(awk "BEGIN {print ($lowpre/10)}")
  25. high=$(awk "BEGIN {print ($highpre/10)}")
  26. setsens
  27. let lowpre="$lowpre-5"
  28. let highpre="$highpre-5"
  29. else
  30. increment="true"
  31. fi
  32. done
  33.  
RAW Paste Data