diff --git a/setup_resolution.sh b/setup_resolution.sh new file mode 100644 index 0000000..59f3ae7 --- /dev/null +++ b/setup_resolution.sh @@ -0,0 +1,28 @@ +#!/bin/bash +# setup_resolution.sh + +CONFIG_DIR="/etc/X11/xorg.conf.d" +CONFIG_FILE="$CONFIG_DIR/10-monitor.conf" + +# Create config directory if it does not exist +sudo mkdir -p "$CONFIG_DIR" + +# Write monitor configuration to file +sudo tee "$CONFIG_FILE" > /dev/null << 'EOF' +Section "Monitor" + Identifier "HDMI-1" + Modeline "1280x800_60.00" 83.50 1280 1352 1480 1680 800 803 809 831 -hsync +vsync + Option "PreferredMode" "1280x800_60.00" +EndSection + +Section "Screen" + Identifier "Screen0" + Monitor "HDMI-1" +EndSection +EOF + +# Restart display manager to apply changes +echo "Restarting display manager..." +sudo systemctl restart display-manager + +echo "✅ Resolution 1280x800 has been configured."