mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-24 02:38:33 +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
|
@ -18,6 +18,11 @@ esac
|
||||||
cp ~/.config/awesome/xsettingsd ~/.config/awesome/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
|
# 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}')
|
||||||
if [ x"$pid" = x ]; then
|
if [ x"$pid" = x ]; then
|
||||||
|
|
2
xsession
2
xsession
|
@ -37,8 +37,6 @@ systemctl --user import-environment
|
||||||
case "$(hostname)" in
|
case "$(hostname)" in
|
||||||
neo)
|
neo)
|
||||||
xrandr --output HDMI-0 --auto --output DP-0 --auto --right-of HDMI-0 --dpi 192
|
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)
|
zoro)
|
||||||
xrandr --output eDP1 --auto --dpi 144
|
xrandr --output eDP1 --auto --dpi 144
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue