Update initwacom to work with wireless mode

This commit is contained in:
2021-11-01 23:02:14 +00:00
parent 2cc8d09576
commit 67baf6d489

View File

@@ -8,9 +8,10 @@ for i in $(seq 10); do
done done
list=$(xsetwacom list devices) list=$(xsetwacom list devices)
pad=$(echo "${list}" | awk '/pad/{print $8}') column=$((echo "$list" | grep "\(WL\)" >/dev/null) && echo 9 || echo 8)
stylus=$(echo "${list}" | awk '/stylus/{print $8}') pad=$(echo "${list}" | awk "/pad/{print \$$column}")
eraser=$(echo "${list}" | awk '/eraser/{print $8}') stylus=$(echo "${list}" | awk "/stylus/{print \$$column}")
eraser=$(echo "${list}" | awk "/eraser/{print \$$column}")
if [ -z "${pad}" ]; then if [ -z "${pad}" ]; then
exit 0 exit 0