Apparently this works better
Becasue otherwise Gnome's setting panel doesn't properly take back scaling control afterwards
This commit is contained in:
parent
6e77e6793f
commit
87a4118022
|
@ -16,14 +16,14 @@ if [[ $1 == "low" ]]
|
|||
then
|
||||
echo "Going low"
|
||||
xrandr --output eDP-1 --mode $NATIVE --fb $HALF --panning $HALF --scale-from $HALF
|
||||
gsettings set org.gnome.desktop.interface scaling-factor 2
|
||||
gsettings set org.gnome.desktop.interface scaling-factor 1
|
||||
gsettings set org.gnome.settings-daemon.plugins.xsettings overrides "{'Gdk/WindowScalingFactor': <1>}"
|
||||
elif [[ $1 == "high" ]]
|
||||
then
|
||||
echo "Going high"
|
||||
xrandr --output eDP-1 --mode $NATIVE --fb $NATIVE --panning $NATIVE --scale-from $NATIVE
|
||||
gsettings set org.gnome.desktop.interface scaling-factor 1
|
||||
gsettings set org.gnome.settings-daemon.plugins.xsettings overrides "{'Gdk/WindowScalingFactor': <2>}"
|
||||
gsettings reset org.gnome.desktop.interface scaling-factor
|
||||
gsettings reset org.gnome.settings-daemon.plugins.xsettings overrides
|
||||
else
|
||||
echo "USAGE: ${0} [low|high]"
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue