If you're using xinit (or startx) to fire up you Xorg, you can run the xinput commands in your xinitrc: https://wiki.archlinux.org/index.php/Xinit
A decent window manager or desktop environment setup (if it isn't intended for running with xinit) will offer some other way of automating this.
But there's also the option of doing this configuration on the Xorg server side in some xorg.conf, like in the links I gave previously.
If you're using xinit (or startx) to fire up you Xorg, you can run the xinput commands in your xinitrc: https://wiki.archlinux.org/index.php/Xinit
A decent window manager or desktop environment setup (if it isn't intended for running with xinit) will offer some other way of automating this.
But there's also the option of doing this configuration on the Xorg server side in some xorg.conf, like in the links I gave previously.