#!/bin/bash

if [ -f /etc/X11/fly-dm/dpi ]; then
  hdpi=`cat /etc/X11/fly-dm/dpi`
  if [ ! -z "$hdpi" ]; then
    if [ "$hdpi" -gt "120" ]; then
      export QT_AUTO_SCREEN_SCALE_FACTOR=1
      export QT_ENABLE_HIGHDPI_SCALING=1
    fi
  fi
fi
