HiDPI and fonts
This commit is contained in:
8
.local/bin/setup/setupmaptool
Executable file
8
.local/bin/setup/setupmaptool
Executable file
@@ -0,0 +1,8 @@
|
||||
#! /bin/bash
|
||||
|
||||
# Scale up the GUI by 2 times for HiDPI screens
|
||||
if [ -f "${XDG_CONFIG_HOME:-$HOME/.config}/x11/.DPI" ]; then
|
||||
DPI="$(cat "${XDG_CONFIG_HOME:-$HOME/.config}/x11/.DPI")"
|
||||
SCALE="$(((DPI+48)/96))"
|
||||
sudo -A sed -i "/\[JavaOptions\]/a -Dsun.java2d.uiScale=$SCALE" /opt/maptool/lib/app/MapTool.cfg
|
||||
fi
|
||||
Reference in New Issue
Block a user