#!/usr/bin/env bash set -euo pipefail export DISPLAY=:0 # Remove the monitors created by the original script. xrandr --delmonitor PHYSICAL 2>/dev/null || true xrandr --delmonitor VNC 2>/dev/null || true # Remove any leftover monitor definitions from previous runs. xrandr --delmonitor VNC-0 2>/dev/null || true xrandr --delmonitor VNC-1 2>/dev/null || true xrandr --delmonitor VNC-2 2>/dev/null || true # Restore the framebuffer to the physical display's resolution. xrandr --fb 1920x1080 xrandr --listmonitors