Files
pims-custom-scripts/scripts/pcs-auto-resolution-monitor
2025-02-04 11:03:54 +01:00

9 lines
193 B
Bash
Executable File

#!/bin/bash
# Check if display connected
if xrandr --listactivemonitors | grep -q "1: +DP-3"; then
autorandr --load home_usbc --force
else
echo "Monitor 1 (DP-3) is not connected."
fi