mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-14 12:14:20 +02:00
xsettings: use xsettings to set scale factor
This commit is contained in:
parent
461223a0a3
commit
387c6d0078
2 changed files with 6 additions and 3 deletions
|
@ -16,7 +16,12 @@ esac
|
|||
|
||||
# Build xsettingsd.local
|
||||
cp ~/.config/awesome/xsettingsd ~/.config/awesome/xsettingsd.local
|
||||
echo Xft/DPI $(( $dpi * 1024 )) >> ~/.config/awesome/xsettingsd.local
|
||||
echo Xft/DPI $(( $dpi*1024 )) >> ~/.config/awesome/xsettingsd.local
|
||||
|
||||
if [ $(( $dpi/96 )) -ge 2 ]; then
|
||||
echo Gdk/WindowScalingFactor $(( $dpi/96 )) >> ~/.config/awesome/xsettingsd.local
|
||||
echo Gdk/UnscaledDPI $(( 96*1024 )) >> ~/.config/awesome/xsettingsd.local
|
||||
fi
|
||||
|
||||
# Signal xsettingsd
|
||||
pid=$(xprop -name xsettingsd _NET_WM_PID 2> /dev/null | awk '{print $NF}')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue