#!/bin/bash

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

export QT_STYLE_OVERRIDE=FlyPlastiqueTablet

MOBILE_BIN=/usr/local/mobile-bin
if ! test -d $MOBILE_BIN; then
 mkdir -m 0775 $MOBILE_BIN
fi
export PATH=$MOBILE_BIN:$PATH

fly-wmfunc FLYWM_GET_TOUCHSCREEN > /dev/null
if [ $? -eq "0" ]; then
  xinput | grep -i mouse > /dev/null
  if [ $? -ne "0" ]; then
    echo "Xcursor.theme: xcursor-transparent" | xrdb -merge -quiet
    echo "Xcursor.size: 48" | xrdb -merge -quiet
  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>
