#!/bin/bash

kpid=`pidof kscreend`
for ((i = 0; i < 5; i++)) do
    [ $((kpid)) -eq 0 ] || break
    sleep 1
    kpid=`pidof kscreend`
done

xinput map-to-output 'pointer:Goodix Capacitive TouchScreen' DSI-1
