mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-23 18:28:34 +02:00
xsettings: use xsettings to set scale factor
This commit is contained in:
parent
461223a0a3
commit
387c6d0078
2 changed files with 6 additions and 3 deletions
|
@ -16,7 +16,12 @@ esac
|
|||
|
||||
# Build xsettingsd.local
|
||||
cp ~/.config/awesome/xsettingsd ~/.config/awesome/xsettingsd.local
|
||||
echo Xft/DPI $(( $dpi * 1024 )) >> ~/.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
|
||||
|
||||
# Signal xsettingsd
|
||||
pid=$(xprop -name xsettingsd _NET_WM_PID 2> /dev/null | awk '{print $NF}')
|
||||
|
|
2
xsession
2
xsession
|
@ -37,8 +37,6 @@ systemctl --user import-environment
|
|||
case "$(hostname)" in
|
||||
neo)
|
||||
xrandr --output HDMI-0 --auto --output DP-0 --auto --right-of HDMI-0 --dpi 192
|
||||
export GDK_SCALE=2
|
||||
export GDK_DPI_SCALE=0.5
|
||||
;;
|
||||
zoro)
|
||||
xrandr --output eDP1 --auto --dpi 144
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue