mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-01 05:44:20 +02:00
xsettings: don't change DPI twice
Firefox only uses window scaling during runtime.
This commit is contained in:
parent
cb25670d97
commit
b7150025e0
1 changed files with 3 additions and 9 deletions
|
@ -33,15 +33,9 @@ change() {
|
|||
else
|
||||
kill -HUP $pid
|
||||
fi
|
||||
|
||||
# Also use xrdb for very old stuff (you know, LibreOffice)
|
||||
echo Xft.dpi: $dpi | xrdb -merge
|
||||
}
|
||||
|
||||
if [ x"$pid" != x ]; then
|
||||
# Change a first time to a DPI that will trigger a scale factor
|
||||
# change (notably, Firefox needs that).
|
||||
change $(( $dpi * 2 ))
|
||||
sleep 1
|
||||
fi
|
||||
change $dpi
|
||||
|
||||
# Also use xrdb for very old stuff (you know, LibreOffice)
|
||||
echo Xft.dpi: $dpi | xrdb -merge
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue