#!/bin/bash

export QT_ACCESSIBILITY=1
export GNOME_ACCESSIBILITY=1
export GTK_MODULES=gail:atk-bridge


MOBILE_BIN=/usr/local/mobile-bin

#no rights to create  as user
#if ! test -d $MOBILE_BIN; then
# mkdir -m 0775 $MOBILE_BIN
#fi
if [ -d $MOBILE_BIN ] ; then
export PATH=$MOBILE_BIN:$PATH
fi

#hide cursor if touchscreen, but neither mouse, nor touchpad
#check touchscreen
#fly-wmfunc FLYWM_GET_TOUCHSCREEN > /dev/null
#if [ $? -eq "0" ]; then
#  #touchscreen is here, check mouse (to be rewritten)
#  xinput | grep -i mouse > /dev/null
#  if [ $? -ne "0" ]; then
#    #no mouse, check touchpad
#    fly-wmfunc FLYWM_GET_INPUT_DEVICES 0x2 > /dev/null
#    if [ $? -ne "0" ]; then
#      # no touchpad, set transparent cursor
#      echo "Xcursor.theme: xcursor-transparent" | xrdb -merge -quiet
#    fi
#  fi
#fi

#TODO: set this prop for touch screen, but how to get this value in device coordinates from dpi?
#xinput set-int-prop $TOUCH_DEV_ID "Evdev Third Button Emulation Threshold" 32 <value>
