forked from colonelpanic/dotfiles
[Linux] Fix xsettingsd-setup
This commit is contained in:
parent
5189033ee1
commit
013bfa64ab
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user