Set overscan in real-time when in interactive mode

This commit is contained in:
Simon Long 2022-02-24 12:24:00 +00:00
parent e549940016
commit 83169ae5a5

View File

@ -362,6 +362,7 @@ do_overscan_kms() {
sed /usr/share/dispsetup.sh -i -e "s/exit/xrandr --output HDMI-$DEV --set \"left margin\" $PIX --set \"right margin\" $PIX --set \"top margin\" $PIX --set \"bottom margin\" $PIX\nexit/"
fi
if [ "$INTERACTIVE" = True ]; then
xrandr --output HDMI-$DEV --set "left margin" $PIX --set "right margin" $PIX --set "top margin" $PIX --set "bottom margin" $PIX
whiptail --msgbox "Display overscan compensation for HDMI-$DEV is $STATUS" 20 60 1
fi
}