mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-02 06:14:22 +02:00
xsettings: keep using xdpyinfo if override not present
This commit is contained in:
parent
f253d81ef5
commit
5710a37455
1 changed files with 5 additions and 2 deletions
|
@ -2,8 +2,11 @@
|
|||
|
||||
# Build xsettingsd.local
|
||||
cp ~/.config/awesome/xsettingsd ~/.config/awesome/xsettingsd.local
|
||||
dpi=$(cat ~/.config/awesome/xsettingsd.dpi 2> /dev/null)
|
||||
dpi=${dpi:-96}
|
||||
if [ -f ~/.config/awesome/xsettingsd.dpi ]; then
|
||||
dpi=$(cat ~/.config/awesome/xsettingsd.dpi)
|
||||
else
|
||||
dpi=$(xdpyinfo | awk '$1 ~ /resolution:/ { print $2 }' | sed 's/x.*//')
|
||||
fi
|
||||
echo Xft/DPI $(( $dpi * 1024 )) >> ~/.config/awesome/xsettingsd.local
|
||||
|
||||
# Signal xsettingsd
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue