Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- read -p 'Pointer Name(device output from xinput list-props): ' "pointer"
- xinput --set-prop "$pointer" "libinput Accel Profile Enabled" 0, 1
- increment="true"
- lowpre="10"
- highpre="20"
- function setsens {
- sleep $(shuf -i 3-5 -n 1);
- rcon -H 127.0.0.1 -p 27015 -P password sensitivity $(seq $low .000001 $high | shuf -n 1)
- xinput list-props "$pointer" | grep "307"
- }
- while true; do
- if [[ "$increment" = "true" && "$highpre" != "40" ]]; then
- low=$(awk "BEGIN {print ($lowpre/10)}")
- high=$(awk "BEGIN {print ($highpre/10)}")
- setsens
- let lowpre="$lowpre+5"
- let highpre="$highpre+5"
- else
- increment="false"
- fi
- if [[ "$increment" = "false" && $lowpre != "10" ]]; then
- low=$(awk "BEGIN {print ($lowpre/10)}")
- high=$(awk "BEGIN {print ($highpre/10)}")
- setsens
- let lowpre="$lowpre-5"
- let highpre="$highpre-5"
- else
- increment="true"
- fi
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement