#!/usr/bin/env bash # ids=$(xinput --list | awk -v search="WingCool" \ '$0 ~ search {match($0, /id=[0-9]+/);\ if (RSTART) \ print substr($0, RSTART+3, RLENGTH-3)\ }'\ ) for i in $ids do xinput set-prop $i --type=float "Coordinate Transformation Matrix" 0.584297018 0 0 0 1 0 0 0 1 done