mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-26 03:38:33 +02:00
xsettings: always set Gdk/* properties
It shouldn't hurt if we use 1 as scaling factor.
This commit is contained in:
parent
387c6d0078
commit
d52488e1c9
1 changed files with 6 additions and 7 deletions
|
@ -15,13 +15,12 @@ case $(hostname),$(xrandr --current | \
|
|||
esac
|
||||
|
||||
# Build xsettingsd.local
|
||||
cp ~/.config/awesome/xsettingsd ~/.config/awesome/xsettingsd.local
|
||||
echo Xft/DPI $(( $dpi*1024 )) >> ~/.config/awesome/xsettingsd.local
|
||||
|
||||
if [ $(( $dpi/96 )) -ge 2 ]; then
|
||||
echo Gdk/WindowScalingFactor $(( $dpi/96 )) >> ~/.config/awesome/xsettingsd.local
|
||||
echo Gdk/UnscaledDPI $(( 96*1024 )) >> ~/.config/awesome/xsettingsd.local
|
||||
fi
|
||||
{
|
||||
cat ~/.config/awesome/xsettingsd
|
||||
echo Xft/DPI $(( $dpi*1024 ))
|
||||
echo Gdk/WindowScalingFactor $(( $dpi/96 ))
|
||||
echo Gdk/UnscaledDPI $(( 96*1024 ))
|
||||
} > ~/.config/awesome/xsettingsd.local
|
||||
|
||||
# Signal xsettingsd
|
||||
pid=$(xprop -name xsettingsd _NET_WM_PID 2> /dev/null | awk '{print $NF}')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue