#!/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:himax-touchscreen'  DSI-1
xinput map-to-output 'pointer:himax-stylus'  DSI-1
