+
+
+set -e; . /usr/local/lib/bash-bear; set +e
+
+script_name="${0##*/}"
+
+
+m() { printf "$script_name: %s\n" "$*"; "$@"; }
+
+## disabed because unused
+# ms() {
+# xinput --set-ptr-feedback "$1" $2 ${3%/*} ${3#*/}
+# # running newer system that uses libinput and has far less
+# # customizability. I havent yet determined the best settings here.
+# if xinput --list-props "$1" | grep "libinput Accel Speed" &>/dev/null; then
+# m xinput --set-prop "$1" "libinput Accel Speed" 1
+# else
+# m xinput --set-prop "$1" 'Device Accel Profile' $4
+# m xinput --set-prop "$1" 'Device Accel Constant Deceleration' $5
+# m xinput --set-prop "$1" 'Device Accel Velocity Scaling' $6
+# fi
+# xinput --get-feedbacks "$1" | grep "threshold"
+# xinput --get-feedbacks "$1" | grep "accelNum\|accelDenom"
+# xinput --list-props "$1"
+# }
+# set_device_id() {
+# if [[ $2 ]] && $2; then
+# cmd="tail -n1"
+# else
+# cmd="head -n1"
+# fi
+# if device_id=$(xinput --list | grep "$1" | $cmd); then
+# device_id=${device_id##*id=}
+# device_id=${device_id%%[[:space:]]*}
+# echo "2:$2 device_id=$device_id"
+# else
+# return 1
+# fi
+# }