mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-15 12:44:21 +02:00
xsettings: also fallback to xrdb
LibreOffice doesn't use xsettings...
This commit is contained in:
parent
913ef0d3f2
commit
58cea06e8e
1 changed files with 5 additions and 2 deletions
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
# Build xsettingsd.local
|
# Build xsettingsd.local
|
||||||
cp ~/.config/awesome/xsettingsd ~/.config/awesome/xsettingsd.local
|
cp ~/.config/awesome/xsettingsd ~/.config/awesome/xsettingsd.local
|
||||||
echo Xft/DPI $(( $(xdpyinfo | \
|
dpi=$(xdpyinfo | awk '$1 ~ /resolution:/ { print $2 }' | sed 's/x.*//')
|
||||||
awk '$1 ~ /resolution:/ { print $2 }' | sed 's/x.*//') * 1024 )) >> ~/.config/awesome/xsettingsd.local
|
echo Xft/DPI $(( $dpi * 1024 )) >> ~/.config/awesome/xsettingsd.local
|
||||||
|
|
||||||
# Signal xsettingsd
|
# Signal xsettingsd
|
||||||
pid=$(xprop -name xsettingsd _NET_WM_PID 2> /dev/null | awk '{print $NF}')
|
pid=$(xprop -name xsettingsd _NET_WM_PID 2> /dev/null | awk '{print $NF}')
|
||||||
|
@ -12,3 +12,6 @@ if [ x"$pid" = x ]; then
|
||||||
else
|
else
|
||||||
kill -HUP $pid
|
kill -HUP $pid
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# 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