Making Xinput map-to-output permanent

Solution 1:

It looks like .xsessionrc runs too early so I added sleep 4 (it works fine for me, you can change it)

sleep 4 && xinput map-to-output 'input name/ID' "Display" &

Don`t forget & at the end of line otherwise your system will just stuck for sleep time without any effect.