Dr. Nikolaus Klepp composed on 2022-11-22 20:01 (UTC+0100):
#!/bin/sh
DPI=$(xrdb -get Xft.dpi)
echo "Xft.dpi:300" | xrdb -override -
galculator &
sleep 1
echo "Xft.dpi:$DPI" | xrdb -override -
The following produces a usage message from xrdb, but does produce a larger KCalc:
#!/bin/sh
DPI=$(xrdb -get Xft.dpi)
echo "Xft.dpi:220" | xrdb -override -
/opt/trinity/bin/kcalc &
sleep 1
echo "Xft.dpi:$DPI" | xrdb -override -
## existing environment
$ xrdb -query | grep dpi
Xft.dpi:
$ xdpyinfo | egrep 'dimen|ution'
dimensions: 1920x1200 pixels (406x254 millimeters)
resolution: 120x120 dots per inch
--
Evolution as taught in public schools is, like religion,
based on faith, not based on science.
Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!
Felix Miata