mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-12 19:24:20 +02:00
xsettings: grab DPI from xsettings.dpi
Some applications, like Chromium don't like the X server to use an appropriate DPI setting. Dunno why. See: https://code.google.com/p/chromium/issues/detail?id=511580 This is a workaround for that.
This commit is contained in:
parent
e3747d1b9f
commit
f253d81ef5
2 changed files with 3 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -2,3 +2,4 @@
|
|||
/wallpapers
|
||||
/screenshots
|
||||
/xsettingsd.local
|
||||
/xsettingsd.dpi
|
||||
|
|
|
@ -2,7 +2,8 @@
|
|||
|
||||
# Build xsettingsd.local
|
||||
cp ~/.config/awesome/xsettingsd ~/.config/awesome/xsettingsd.local
|
||||
dpi=$(xdpyinfo | awk '$1 ~ /resolution:/ { print $2 }' | sed 's/x.*//')
|
||||
dpi=$(cat ~/.config/awesome/xsettingsd.dpi 2> /dev/null)
|
||||
dpi=${dpi:-96}
|
||||
echo Xft/DPI $(( $dpi * 1024 )) >> ~/.config/awesome/xsettingsd.local
|
||||
|
||||
# Signal xsettingsd
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue