#!/bin/bash # Display configuration script # Run this anytime you want to restore your display settings echo "Configuring displays..." # Primary display (laptop screen) xrandr --output eDP-1 --mode 3840x2160 --pos 0x0 --primary # External display at native resolution with proper positioning if xrandr | grep -q "DP-1-3 connected"; then echo "Configuring external display DP-1-3..." xrandr --output DP-1-3 --mode 2240x1400 --pos 3840x760 --scale 1x1 echo "External display configured:" echo " - Native resolution: 2240x1400" echo " - Position: bottom-aligned with laptop screen" echo " - No scaling artifacts" echo " - Mouse can move seamlessly between screens" else echo "External display DP-1-3 not connected" fi echo "Display configuration complete!"