mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-27 22:35:04 +02:00
xsettings: correctly compute Gdk/UnscaledDPI value
For fractional scaling factor, it's not always 96dpi.
This commit is contained in:
parent
08d310408a
commit
bf0483f610
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ esac
|
||||||
cat ~/.config/awesome/xsettingsd
|
cat ~/.config/awesome/xsettingsd
|
||||||
echo Xft/DPI $(( $dpi*1024 ))
|
echo Xft/DPI $(( $dpi*1024 ))
|
||||||
echo Gdk/WindowScalingFactor $(( $dpi/96 ))
|
echo Gdk/WindowScalingFactor $(( $dpi/96 ))
|
||||||
echo Gdk/UnscaledDPI $(( 96*1024 ))
|
echo Gdk/UnscaledDPI $(( $dpi*1024/($dpi/96) ))
|
||||||
} > ~/.config/awesome/xsettingsd.local
|
} > ~/.config/awesome/xsettingsd.local
|
||||||
|
|
||||||
# Signal xsettingsd
|
# Signal xsettingsd
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue