Skip to content

Instantly share code, notes, and snippets.

View clo-yunhee's full-sized avatar

Clo Yun-Hee clo-yunhee

View GitHub Profile
@clo-yunhee
clo-yunhee / !tabletarea.sh
Last active November 25, 2018 19:38
Small(kinda?) configurable shell script to calculate active tablet area units for Xorg drivers (You'll have to adapt the output depending on which driver you're using)
#!/bin/sh
#Monitor display ratio
disprat=$(echo "16 / 9" | bc -l)
#Full area size in real units (for the G640, in mm)
tabw=152.4
tabh=101.6
#Full area size in driver units