[Linux] Fix xsettingsd-setup

This commit is contained in:
Ivan Malison 2016-11-21 12:40:17 -06:00
parent 5189033ee1
commit 013bfa64ab
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -21,13 +21,13 @@ echo "Setting dpi to $dpi"
cp ~/.xsettingsd ~/.xsettingsd.local
echo Xft/DPI $(( $dpi * 1024 )) >> ~/.xsettingsd.local
# # Also use xrdb for very old stuff (you know, LibreOffice)
echo Xft.dpi: "$dpi" | xrdb -merge
# Signal xsettingsd
pid=$(xprop -name xsettingsd _NET_WM_PID 2> /dev/null | awk '{print $NF}')
if [ x"$pid" = x ]; then
xsettingsd -c ~/.xsettingsd.local &
xsettingsd -c ~/.xsettingsd.local
else
kill -HUP $pid
fi
# # Also use xrdb for very old stuff (you know, LibreOffice)
echo Xft.dpi: "$dpi" | xrdb -merge